-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.prod.yml
More file actions
39 lines (36 loc) · 952 Bytes
/
docker-compose.prod.yml
File metadata and controls
39 lines (36 loc) · 952 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
version: "3.3"
services:
db:
image: postgres:12.2
container_name: lunch-time-db-prod
ports:
- "5432:5432"
environment:
POSTGRES_DB: "lunchtime"
POSTGRES_USER: "lunchTimeAppUser"
POSTGRES_PASSWORD: "kfyxnfqVRv54"
server:
build:
context: ./server/
dockerfile: Dockerfile.prod
container_name: lunch-time-server-prod
depends_on:
- db
ports:
- "8080:8080"
environment:
- SPRING_DATASOURCE_URL=jdbc:postgresql://db:5432/lunchtime?useUnicode=true&characterEncoding=utf8&useSSL=false
volumes:
- ./server/static/:/app/static/
working_dir: /app
command: java -jar target/LunchTime-0.0.1-SNAPSHOT.jar --spring.profiles.active=prod
client:
build:
context: ./client/
dockerfile: Dockerfile.prod
container_name: lunch-time-client-prod
depends_on:
- server
ports:
- "80:3000"
command: npm run start:server