-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
132 lines (120 loc) · 3.47 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
version: "3"
# See https://github.com/plone/plone-backend/tree/6.0.x
# https://pkg.go.dev/github.com/robfig/cron?utm_source=godoc
# https://github.com/mcuadros/ofelia
services:
zeo:
image: plone/plone-zeo:latest
volumes:
- ./data:/data
# ports:
# - "8100:8100"
labels:
ofelia.enabled: "true"
ofelia.job-exec.weekly-backup.schedule: "0 0 2 * * 0"
ofelia.job-exec.weekly-backup.command: "/app/bin/repozo -B -f /app/var/filestorage/Data.fs -r /app/var/backup"
frontend:
image: tiberiuichim/vanabbe:1.90
profiles: ["production"]
env_file:
- ./.env
# depends_on:
# - plone
#environment:
#RAZZLE_INTERNAL_API_PATH: "http://plone:8080/Plone"
frontend-production:
env_file:
- ./.env
depends_on:
- lb
image: tiberiuichim/vanabbe:1.90
profiles: ["production"]
plone:
depends_on:
- lb
image: tiberiuichim/vanabbe-backend:6.0.0-7
# depends_on:
# - zeo
environment:
ZEO_ADDRESS: zeo:8100
# ADDONS: "kitconcept.seo"
# ADDONS: "collective.volto.cookieconsent collective.volto.formsupport"
#/app/src/collective.previewimage -e
DEVELOP: "/app/src/intk_vanabbe"
volumes:
- cache:/data
- ./backend/src:/app/src
- ./data-import:/data-import
labels:
ofelia.enabled: "true"
ofelia.job-exec.monthly-pack.schedule: "0 0 0 1 * *"
ofelia.job-exec.monthly-pack.command: "/app/bin/zeopack -h zeo -p 8100 -d 3"
healthcheck:
disable: true
worker:
entrypoint: sh -c "tail -f /dev/null"
extends: plone
environment:
ZODB_CACHE_SIZE: 200000
lb:
image: traefik:v2.9
command: --api.insecure=true --providers.docker --entrypoints.lb.address=:8090
# ports:
# # The Web UI (enabled by --api.insecure=true)
# - "8080:8080"
# # the lb entrypoint
# - "8090:8090"
volumes:
# So that Traefik can listen to the Docker events
- /var/run/docker.sock:/var/run/docker.sock
# - ./traefik.yml:/etc/traefik/traefik.yml
# See https://github.com/mcuadros/ofelia
ofelia:
image: mcuadros/ofelia:latest
restart: always
command: daemon --docker
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
profiles: ["production"]
# nginx:
# build: ./webserver/nginx
# image: tiberiuichim/nginx
# env_file:
# - ./webserver.env
# volumes:
# - ./webserver/data/nginx_conf:/etc/nginx/sites
# - ./webserver/data/letsencrypt_certs:/etc/letsencrypt
# - ./webserver/data/certbot_acme_challenge:/var/www/certbot
# - ./webserver/data/vhosts:/etc/nginx/vhosts
# - ./webserver/data/html:/var/www/html
# ports:
# - "80:80"
# - "443:443"
# restart: unless-stopped
# profiles: ["production"]
# certbot:
# depends_on:
# - nginx
# build: ./webserver/certbot
# image: tiberiuichim/certbot
# env_file:
# - ./webserver.env
# volumes:
# - ./webserver/data/letsencrypt_certs:/etc/letsencrypt
# - ./webserver/data/certbot_acme_challenge:/var/www/certbot
# profiles: ["production"]
# cron:
# depends_on:
# - certbot
# build: ./webserver/cron
# image: tiberiuichim/cron
# environment:
# COMPOSE_PROJECT_NAME: "${COMPOSE_PROJECT_NAME}"
# volumes:
# - /var/run/docker.sock:/var/run/docker.sock
# - ./:/workdir:ro
# # needs direct access to current docker-compose project so that it can run `docker-compose` commands
# restart: unless-stopped
# profiles: ["production"]
volumes:
cache: {}