-
-
Notifications
You must be signed in to change notification settings - Fork 143
/
gogocarto.yml
49 lines (45 loc) · 1.54 KB
/
gogocarto.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
# DOMAIN=example.com docker stack deploy -c gogocarto.yml gogocarto
# git clone https://gitlab.com/Seballot/gogocarto/ .
# make init
# chown -R www-data:www-data .
# https://gogocarto.localhost/project/initialize
services:
gogocarto:
image: ethibox/gogocarto:${VERSION:-latest}
environment:
- APP_ENV=${APP_ENV:-prod}
- APP_DEBUG=${APP_DEBUG:-0}
- BASE_PROTOCOL=${SCHEME:-https}
- BASE_URL=${DOMAIN:-gogocarto.localhost}
- MAILER_URL=smtp://${SMTP_HOST}:${SMTP_PORT:-587}?encryption=${SMTP_ENCRYPTION:-tls}&auth_mode=login&username=${SMTP_USERNAME}&password=${SMTP_PASSWORD}
- FROM_EMAIL=${SMTP_FROM:[email protected]}
- CONTACT_EMAIL=${CONTACT_EMAIL:[email protected]}
volumes:
- ${VOLUME_PATH}gogocarto:/var/www
deploy:
labels:
- traefik.enable=true
- traefik.http.routers.gogocarto-${NUMBER:-1}.rule=Host(`${DOMAIN:-gogocarto.localhost}`)
- traefik.http.routers.gogocarto-${NUMBER:-1}.entrypoints=${SCHEME:-https}
- traefik.http.routers.gogocarto-${NUMBER:-1}.service=gogocarto-${NUMBER:-1}
- traefik.http.routers.gogocarto-${NUMBER:-1}.tls.certresolver=letsencrypt
- traefik.http.services.gogocarto-${NUMBER:-1}.loadbalancer.server.port=80
networks:
- traefik
- internal
mongo:
image: mongo:4.0.3
volumes:
- ${VOLUME_PATH}mongo:/data/db
networks:
- internal
volumes:
mongo:
gogocarto:
networks:
internal:
driver: overlay
attachable: true
traefik:
external: true
name: traefik-net