-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
70 lines (61 loc) · 1.43 KB
/
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
version: '3'
networks:
web_nw:
driver: bridge
volumes:
static-ui-content:
services:
postgres:
container_name: mess_db
image: postgres:12.4
restart: always
environment:
- POSTGRES_HOST_AUTH_METHOD=trust
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_DB=${POSTGRES_DB}
- POSTGRES_HOST=mess_db
- POSTGRES_PORT=5432
volumes:
- ./postgres-data:/var/lib/postgresql/data
ports:
- "5432:5432"
networks:
default:
aliases:
- postgres
api:
container_name: api
build: backend
env_file: .env
restart: always
# command: sh -c 'cd backend && python manage.py runserver 0.0.0.0:8002 '
command: bash -c "cd backend && gunicorn core.wsgi --bind 0.0.0.0:8002"
volumes:
- .:/dockyard
environment:
- DEV_MODE=False
- POSTGRES_HOST_AUTH_METHOD=trust
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- SECRET_KEY=dfgkdsfls234
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_DB=${POSTGRES_DB}
- POSTGRES_HOST=mess_db
- POSTGRES_PORT=5430
ports:
- 8002:8002
links:
- postgres
frontend:
restart: always
build:
context: ./ui
dockerfile: Dockerfile.dev
container_name: frontend
image: frontend_image
depends_on:
- api
volumes:
- ./ui/nginx:/etc/nginx/conf.d
ports:
- 8083:8083