Skip to content

Commit fd33b6c

Browse files
committed
feat: add gogocarto
1 parent a9cb679 commit fd33b6c

File tree

1 file changed

+50
-0
lines changed

1 file changed

+50
-0
lines changed

stacks/gogocarto.yml

+50
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# DOMAIN=example.com docker stack deploy -c gogocarto.yml gogocarto
2+
# git clone https://gitlab.com/Seballot/gogocarto/ .
3+
# make init
4+
# chown -R www-data:www-data .
5+
6+
version: '3.8'
7+
8+
services:
9+
gogocarto:
10+
image: ethibox/gogocarto:${VERSION:-latest}
11+
environment:
12+
- APP_ENV=${APP_ENV:-prod}
13+
- APP_DEBUG=${APP_DEBUG:-0}
14+
- BASE_PROTOCOL=${SCHEME:-https}
15+
- BASE_URL=${DOMAIN:-gogocarto.localhost}
16+
- MAILER_URL=${MAILER_URL:-smtp://localhost:25?encryption=ssl&auth_mode=login&username=&password=}
17+
- FROM_EMAIL=${FROM_EMAIL:[email protected]}
18+
- CONTACT_EMAIL=${CONTACT_EMAIL:[email protected]}
19+
volumes:
20+
- ${VOLUME_PATH}gogocarto:/var/www
21+
deploy:
22+
labels:
23+
- traefik.enable=true
24+
- traefik.http.routers.gogocarto-${NUMBER:-1}.rule=Host(`${DOMAIN:-gogocarto.localhost}`)
25+
- traefik.http.routers.gogocarto-${NUMBER:-1}.entrypoints=${SCHEME:-https}
26+
- traefik.http.routers.gogocarto-${NUMBER:-1}.service=gogocarto-${NUMBER:-1}
27+
- traefik.http.routers.gogocarto-${NUMBER:-1}.tls.certresolver=letsencrypt
28+
- traefik.http.services.gogocarto-${NUMBER:-1}.loadbalancer.server.port=80
29+
networks:
30+
- traefik
31+
- internal
32+
33+
mongo:
34+
image: mongo:4.0.3
35+
volumes:
36+
- ${VOLUME_PATH}mongo:/data/db
37+
networks:
38+
- internal
39+
40+
volumes:
41+
mongo:
42+
gogocarto:
43+
44+
networks:
45+
internal:
46+
driver: overlay
47+
attachable: true
48+
traefik:
49+
external: true
50+
name: traefik-net

0 commit comments

Comments
 (0)