-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathdocker-compose.yml
56 lines (52 loc) · 1.22 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
version: "3.4"
volumes:
postgres-data:
driver: local
name: ctk_postgres_data
django-static:
driver: local
name: ctk_django_static
services:
postgres:
container_name: ctk-postgres
image: postgres:11
ports:
- 5432:5432
volumes:
- postgres-data:/var/lib/postgresql/data
environment:
- POSTGRES_PASSWORD=postgres
backend:
container_name: ctk-server
restart: always
build:
context: ./
dockerfile: ./services/backend/Dockerfile
image: corpulent/ctk-api:1.0.0
working_dir: /home
depends_on:
- postgres
links:
- postgres
volumes:
- ./services/backend/src:/home/server/
- ./services/backend/configs:/home/configs/
- django-static:/static/
ports:
- "9001:9001"
- "9000:9000"
environment:
- DB_REMOTE=False
- APP_URL=
frontend:
container_name: ctk-frontend
restart: always
build:
context: ./
dockerfile: ./services/frontend/Dockerfile
image: corpulent/ctk-frontend:1.0.0
volumes:
- ./services/frontend/configs/nginx/default.conf:/etc/nginx/conf.d/default.conf
- ./services/frontend/build:/usr/share/nginx/html/
ports:
- "8080:8080"