-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
53 lines (48 loc) · 880 Bytes
/
docker-compose.yaml
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
42
43
44
45
46
47
48
49
50
51
52
53
version: '3.8'
services:
frontend_prod:
build:
context: ./frontend
container_name: frontend_prod
ports:
- '3000:3000'
env_file:
- ./frontend/.env
environment:
- BACKEND_HOST=backend_prod
networks:
- net
database_prod:
container_name: database_prod
image: 'postgres:latest'
ports:
- 15432:5432
env_file:
- ./backend/.env
environment:
- DATABASE_HOST=database
networks:
- net
volumes:
- pgdata:/var/lib/postgresql/data
backend_prod:
container_name: backend_prod
build:
context: backend
env_file:
- backend/.env
environment:
- DATABASE_HOST=database
ports:
- 8000:8000
volumes:
- images:/images
networks:
- net
depends_on:
- database_prod
networks:
net:
volumes:
images:
pgdata: