-
-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathdocker-compose.prod.yml
More file actions
40 lines (39 loc) · 773 Bytes
/
docker-compose.prod.yml
File metadata and controls
40 lines (39 loc) · 773 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
name: balancer-prod
version: '3.8'
services:
db:
build:
context: ./db
dockerfile: Dockerfile
volumes:
- postgres_data:/var/lib/postgresql/data/
environment:
- POSTGRES_USER=balancer
- POSTGRES_PASSWORD=balancer
- POSTGRES_DB=balancer_dev
ports:
- "5432:5432"
backend:
image: balancer-backend
build:
context: server
dockerfile: Dockerfile.prod
ports:
- "8000:8000"
env_file:
- ./config/env/env.dev
depends_on:
- db
frontend:
image: balancer-frontend
build:
context: frontend
dockerfile: Dockerfile.prod
args:
- IMAGE_NAME=balancer-frontend
ports:
- "80:80"
depends_on:
- backend
volumes:
postgres_data: