-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
41 lines (38 loc) · 887 Bytes
/
docker-compose.yml
File metadata and controls
41 lines (38 loc) · 887 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
version: "3.3"
services:
db:
image: postgres:12.2
container_name: lunch-time-db
ports:
- "5432:5432"
environment:
POSTGRES_DB: "lunchtime"
POSTGRES_USER: "lunchTimeAppUser"
POSTGRES_PASSWORD: "kfyxnfqVRv54"
server:
build:
context: ./server/
container_name: lunch-time-server
depends_on:
- db
ports:
- "8080:8080"
environment:
- SPRING_DATASOURCE_URL=jdbc:postgresql://db:5432/lunchtime?useUnicode=true&characterEncoding=utf8&useSSL=false
volumes:
- ./server/:/app/
- ./server/static/:/app/static/
working_dir: /app
user: appuser
command: mvn clean spring-boot:run
client:
build:
context: ./client/
container_name: lunch-time-client
depends_on:
- server
ports:
- "3000:3000"
volumes:
- ./client:/app
command: npm start