-
Notifications
You must be signed in to change notification settings - Fork 21
/
docker-compose.yml.template
52 lines (49 loc) · 1.08 KB
/
docker-compose.yml.template
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
version: '3'
networks:
main-network:
nginx-network:
services:
nginx:
container_name: 'iqps-nginx'
build: ./nginx
volumes:
- local_static_root_path:/var/www/static/
networks:
main-network:
nginx-network:
depends_on:
- web
db:
build: ./mariadb-udf-docker
restart: always
networks:
main-network:
environment:
MYSQL_DATABASE: 'iqps'
MYSQL_USER: 'iqps_admin'
MYSQL_PASSWORD: 'DB_PWD'
MYSQL_ROOT_PASSWORD: 'DB_ROOT_PWD'
MYSQL_ROOT_HOST: '%'
volumes:
- local_db_data_path:/var/lib/mysql
web:
build: .
command: gunicorn iqps.wsgi -w 4 -b 0.0.0.0:8000 --access-logfile /var/log/iqps/gunicorn.log
restart: always
volumes:
- .:/iqps/
- local_static_root_path:/var/www/static/
- local_log_path:/var/log/iqps/
networks:
main-network:
depends_on:
- db
backup:
build: ./backup
environment:
MYSQL_PASSWORD: 'DB_PWD'
DROPBOX_ACCESS_TOKEN: 'DROPBOX_TOKEN'
networks:
main-network:
depends_on:
- db