-
-
Notifications
You must be signed in to change notification settings - Fork 9
/
docker-compose-dev.yml
60 lines (54 loc) · 1.24 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
version: "3.8"
services:
web:
build: ./
container_name: intunecd
restart: always
entrypoint: ./server-entrypoint.sh
env_file:
- .env
expose:
- 8080
environment:
- TZ=Europe/Stockholm
volumes:
- ./db:/intunecd/db
- ./documentation:/documentation
- ./:/intunecd
redis:
image: "redis:6.0.5-buster"
worker:
build: ./
entrypoint: celery
command: -A app.celery worker -l info
depends_on:
- "redis"
env_file:
- .env
environment:
- TZ=Europe/Stockholm
volumes:
- ./db:/intunecd/db
- ./documentation:/documentation
beat:
build: ./
entrypoint: celery
command: -A app.celery beat -S sqlalchemy_celery_beat.schedulers:DatabaseScheduler -l info
depends_on:
- "redis"
env_file:
- .env
environment:
- TZ=Europe/Stockholm
volumes:
- ./db:/intunecd/db
- ./documentation:/documentation
nginx:
build: ./nginx-dev
container_name: nginx
restart: always
command: ["/bin/sh", "-c", "envsubst < /etc/nginx/conf.d/nginx.conf.template > /etc/nginx/conf.d/nginx.conf && exec nginx -g 'daemon off;'"]
environment:
- SERVER_NAME=http://localhost
ports:
- 80:80