-
Notifications
You must be signed in to change notification settings - Fork 14
/
docker-compose.yml
77 lines (70 loc) · 1.73 KB
/
docker-compose.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
services:
web:
image: ghcr.io/urlab/incubator:main
volumes:
- static_volume:/srv/collected_static
- media_volume:/srv/media
expose:
- 8000
env_file:
- ./.env
depends_on:
- db
networks:
- private
labels:
ofelia.enabled: "true"
ofelia.job-exec.autoclose.schedule: "0 0 4 * * *"
ofelia.job-exec.autoclose.command: "python3 manage.py close_space"
restart: unless-stopped
redis:
image: redis:7.0.9
networks:
- private
restart: unless-stopped
db:
image: postgres:12.0-alpine
volumes:
- postgres_data:/var/lib/postgresql/data/
env_file:
- ./.env.db
networks:
- private
restart: unless-stopped
nginx:
build: ./nginx
volumes:
- static_volume:/home/app/web/collected_static
- media_volume:/home/app/web/media
labels:
- "traefik.enable=true"
- "traefik.http.routers.web.entrypoints=web"
- "traefik.http.routers.web.rule=Host(`urlab.be`)"
- "traefik.http.routers.web-secure.rule=Host(`urlab.be`)"
- "traefik.http.routers.web-secure.entrypoints=websecure"
- "traefik.http.routers.web-secure.tls.certresolver=myresolver"
# - "traefik.http.routers.web-secure.service=nginx-incubator@docker"
- "traefik.docker.network=traefik-proxy"
depends_on:
- web
networks:
- private
- public
- traefik-proxy
restart: unless-stopped
ofelia:
image: mcuadros/ofelia:latest
command: daemon --docker
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
networks:
private:
driver: overlay
public:
external: true
traefik-proxy:
external: true
volumes:
postgres_data:
static_volume:
media_volume: