-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.dev.yml
93 lines (88 loc) · 2.82 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
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
version: "2"
volumes:
vscode-remote-django:
vscode-remote-vue:
var-gemeindescan-webui:
services:
pdb:
extends:
file: docker-images.yml
service: pdb
environment:
- PGDATA=/var/services/postgres/data
- POSTGRES_USER=webui
- POSTGRES_PASSWORD=pgpass
- POSTGRES_DB=webui
volumes:
- var-gemeindescan-webui:/var/services
ports:
- "5434:5432"
vue:
extends:
file: docker-images.yml
service: vue
environment:
- TERM=xterm-256color
- START_SCREENSHOTSERVICE=NO
- VUE_APP_MAPBOX_ACCESSTOKEN=${MAPBOX_TOKEN}
- VUE_APP_MAPBOX_ACCESSTOKEN_DEV=pk.eyJ1IjoiZ2VtZWluZGVzY2FuIiwiYSI6ImNrNXdrOXV2ZjEwdXcza28wcXNoYXE1ZGMifQ.P-nCvxNRK4AOs7YdRbHCLg
- VUE_APP_MAPBOX_DEFAULT_STYLES=${MAPBOX_STYLE}
- VUE_APP_MAPBOX_DEFAULT_STYLES_DEV=mapbox://styles/gemeindescan/ck6rp249516tg1iqkmt48o4pz
- VUE_APP_GRAPHQL_URI=http://www:8000/graphql/
- VUE_APP_DJANGOBASEURL=http://www:8000
- VUE_APP_FATHOM_SITEID=${FATHOM_SITEID}
- VUE_APP_FATHOM_URL=${FATHOM_URL}
- VUE_APP_SNAPSHOTSTOREURL=https://gemeindescan.eu-central-1.linodeobjects.com/public/
- PUBLIC_URL=http://www:8000
working_dir: /opt/vue
volumes:
- ./vue:/opt/vue:Z
- var-gemeindescan-webui:/var/services/
- vscode-remote-vue:/root/.vscode-server
ports:
- "9222:9222" # debug chrome
- "8079:8079" # snapshost service
- "10001:10001" # vscode
django:
extends:
file: docker-images.yml
service: django
environment:
- TERM=linux
- START_DJANGO=NO
- DJANGO_SECRET_KEY=${DJANGO_SECRET}
- DJANGO_SECRET_KEY_DEV=adddxxccxx4rt0ioywg3yf5kjq64-t5
- DJANGO_DB_NAME=webui
- DJANGO_DB_USER=webui
- DJANGO_DB_PASSWORD=pgpass
- DJANGO_DB_HOST=pdb
- DJANGO_DEBUG=True
- DJANGO_HTTPS=False
- DJANGO_EMAIL_HOST=maildev
- DJANGO_ALLOWED_HOSTS=www,www.local,localhost,django
- DJANGO_ADMIN_NAME=gemeindescan DEV
- DJANGO_ADMIN_HEADER_COLOR=#ff0000
- DJANGO_SCREENSHOT_SCHEDULER_CRON_MINUTES=* # * every minute, */5 every 5 minutes
- START_APSCHEDULER=YES
working_dir: /opt/app
volumes:
- ./django:/opt/app:Z
- var-gemeindescan-webui:/var/services
- vscode-remote-django:/root/.vscode-server
ports:
- "10002:10002" # vscode
# entrypoint: tail
# command: -f /dev/null
www:
extends:
file: docker-images.yml
service: www
volumes:
- ./etc/nginx:/etc/nginx/conf.d:Z
- var-gemeindescan-webui:/var/services
ports:
- 8000:8000
command: >
sh -c '[ ! -e /etc/nginx/conf.d/www.local.conf ] && ln -s /etc/nginx/conf.d/www.local.dev /etc/nginx/conf.d/www.local.conf;
/usr/local/openresty/bin/openresty -g "daemon off;"'
# command: tail -f /dev/null