-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.dev.yml
executable file
·61 lines (55 loc) · 2.01 KB
/
docker-compose.dev.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
version: "2.4"
services:
app-hizz-web:
build:
context: .
dockerfile: docker/hizz-web/python/Dockerfile
restart: always
ports:
- "8081"
- "8000"
volumes:
- ./app:/app
# - /opt/vida/hizz-web/customers_data:/customers_data
volumes_from:
- container:traefik_vimmodadev
command: sh -c "python manage.py wait_for_db && uwsgi --socket :8081 --http :8000 --buffer-size=32768 --module app.wsgi"
# sh -c "python manage.py wait_for_db && uwsgi --http :8000 --module app.wsgi"
# sh -c "python manage.py wait_for_db && uwsgi --ini uwsgi.ini uwsgi --module app.wsgi"
# gunicorn -w 4 app.wsgi -b 0.0.0.0:8080"
env_file:
- ./envfiles/.hizz-web_envfile
depends_on:
- db-hizz-web
labels:
# api
- "traefik.enable=true"
- "traefik.docker.network=traefik-proxy"
- "traefik.http.routers.apivrdrvida24.rule=Host(`apirdr.vida24.de`) "
- "traefik.http.routers.apivrdrvida24.middlewares=secureHeaders@file"
- "traefik.http.services.apivrdrvida24.loadbalancer.server.port=8000"
- "traefik.http.routers.apivrdrvida24.tls.certresolver=letsencrypt"
- "traefik.http.routers.apivrdrvida24.priority=899"
- "traefik.http.routers.apivrdrvida24.tls=true"
environment:
- DJANGO_SETTINGS_MODULE=app.settings_hizz-web
# - VIRTUAL_HOST=apirdr.vidadev.de
# - VIRTUAL_PROTO= uwsgi
# - LETSENCRYPT_HOST=apirdr.vidadev.de
db-hizz-web:
image: store/oracle/mysql-enterprise-server:5.7
container_name: db-mysql-hizz-web
restart: always
volumes:
- ./sql_scripts/dev/:/docker-entrypoint-initdb.d/
- /opt/docker-containers/data/hizz-web/mysql_data/:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=Xb44StagS#!
- MYSQL_USER=vidauser
- MYSQL_PASSWORD=Xb44StagS#!
networks:
default:
external:
# name: nginx-proxy
name: traefik-proxy