-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
51 lines (46 loc) · 936 Bytes
/
docker-compose.yml
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
version: '3.8'
services:
redis:
image: redis:alpine
container_name: acs_redis
restart: always
nginx:
build: .
container_name: acs_nginx
restart: always
ports:
- "80:80"
depends_on:
- redis
- postgres
- backend
volumes:
- ./backend/static:/usr/src/app/static
postgres:
image: postgres:latest
container_name: acs_postgressql
restart: always
environment:
- POSTGRES_DB=ACS
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=12345678
ports:
- "5432:5432"
volumes:
- postgres-data:/var/lib/postgresql/data
backend:
build: ./backend
container_name: acs_backend
restart: always
depends_on:
- redis
- postgres
volumes:
- ./backend/static:/usr/src/app/static
ports:
- "8000:8000"
environment:
- PYTHONUNBUFFERED=TURE
- MODE=PROD
volumes:
postgres-data: