-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
99 lines (80 loc) · 1.82 KB
/
docker-compose.yml
File metadata and controls
99 lines (80 loc) · 1.82 KB
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
version: "3.8"
services:
nginxmedia:
image: nginx:1.15
networks:
- db
ports:
- 8888:80
volumes:
- media:/usr/share/nginx/media
- static:/usr/share/nginx/static
- ./nginx.conf:/etc/nginx/conf.d/default.conf
api:
image: sisitechdev/daa-v2-api:v1.0.0 # Location with a Dockerfile
restart: always
depends_on:
- db
- memcached
networks:
- db
volumes:
- media:/media
- static:/static
environment:
SECRET_KEY: test_secret_key
DB_PASSWORD: test_password
DB_USER: moeke
DB_NAME: moekeapi
DB_HOST: db
MEDIA_ROOT: /media
STATIC_ROOT: /static
MEDIA_URL: http://localhost:8888/media/
STATIC_URL: http://localhost:8888/static/
DOCS_TITLE: Digital Attendance Application API
DOCS_SUB_TITLE: API Docs
DOCS_LOGO: https://www.unicef.org/sites/default/files/styles/logo/public/English_9.png.webp?itok=KaPGNxiU
ports:
- 8020:8000
background_tasks:
image: sisitechdev/daa-v2-api:v1.0.0 # Location with a Dockerfile
restart: always
command: python manage.py process_tasks
depends_on:
- db
- memcached
- api
networks:
- db
volumes:
- media:/media
- static:/static
environment:
SECRET_KEY: test_secret_key
DB_PASSWORD: test_password
DB_USER: moeke
DB_NAME: moekeapi
DB_HOST: db
memcached:
image: memcached:latest
ports:
- "11211:11211"
networks:
- db
db:
image: postgres
restart: always
networks:
- db
environment:
POSTGRES_PASSWORD: test_password
POSTGRES_USER: moeke
POSTGRES_DB: moekeapi
volumes:
- pg:/var/lib/postgresql/data
networks:
db:
volumes:
pg:
media:
static: