2019-02-24 22:07:20 +00:00
|
|
|
version: "3"
|
|
|
|
|
2020-09-26 00:53:17 +00:00
|
|
|
networks:
|
|
|
|
traefik-proxy:
|
|
|
|
external: true
|
|
|
|
|
2019-02-24 22:07:20 +00:00
|
|
|
services:
|
|
|
|
nuxt:
|
|
|
|
build: ./app/
|
2020-05-03 12:10:54 +00:00
|
|
|
container_name: marcleopold-rayelliott.dev
|
2020-05-05 16:54:58 +00:00
|
|
|
restart: unless-stopped
|
2019-02-24 22:07:20 +00:00
|
|
|
ports:
|
2020-05-03 12:10:54 +00:00
|
|
|
- ${URL_INTERNAL}:3013:3013
|
2020-09-26 00:53:17 +00:00
|
|
|
networks:
|
|
|
|
- traefik-proxy
|
2019-02-25 18:14:38 +00:00
|
|
|
environment:
|
2019-02-25 18:16:34 +00:00
|
|
|
- URL_INTERNAL=${URL_INTERNAL}
|
2019-02-26 10:59:48 +00:00
|
|
|
- URL_CMS=${URL_CMS}
|
2019-02-26 11:09:24 +00:00
|
|
|
- URL_APP=${URL_APP}
|
2019-02-25 18:16:34 +00:00
|
|
|
- PORT_APP=${PORT_APP}
|
2019-02-26 10:59:48 +00:00
|
|
|
- PORT_CMS=${PORT_CMS}
|
2019-02-24 22:07:20 +00:00
|
|
|
command:
|
2019-02-25 21:05:03 +00:00
|
|
|
"npm run start"
|
2020-09-26 00:53:17 +00:00
|
|
|
labels:
|
|
|
|
- "traefik.enable=true"
|
|
|
|
- "traefik.http.routers.leopold-app.entrypoints=http"
|
|
|
|
- "traefik.http.routers.leopold-app.rule=Host(`leopold.rayelliott.dev`)"
|
|
|
|
- "traefik.http.middlewares.leopold-app-https-redirect.redirectscheme.scheme=https"
|
|
|
|
- "traefik.http.routers.leopold-app.middlewares=traefik-https-redirect"
|
|
|
|
- "traefik.http.routers.leopold-app-secure.entrypoints=https"
|
|
|
|
- "traefik.http.routers.leopold-app-secure.rule=Host(`leopold.rayelliott.dev`)"
|
|
|
|
- "traefik.http.routers.leopold-app-secure.tls=true"
|
|
|
|
- "traefik.http.routers.leopold-app-secure.tls.certresolver=http"
|
|
|
|
- "traefik.docker.network=traefik-proxy"
|
2019-02-25 14:35:01 +00:00
|
|
|
|
|
|
|
octobercms:
|
|
|
|
image: aspendigital/octobercms:latest
|
2019-02-26 10:59:48 +00:00
|
|
|
build: ./cms/
|
2020-09-26 00:53:17 +00:00
|
|
|
restart: unless-stopped
|
2019-02-25 14:35:01 +00:00
|
|
|
ports:
|
2020-05-03 12:10:54 +00:00
|
|
|
- ${URL_INTERNAL}:3014:80
|
2020-09-26 00:53:17 +00:00
|
|
|
networks:
|
|
|
|
- traefik-proxy
|
2019-02-25 14:35:01 +00:00
|
|
|
environment:
|
|
|
|
- ENABLE_CRON=true
|
2019-02-25 17:45:16 +00:00
|
|
|
- APP_DEBUG=false
|
2019-02-25 14:35:01 +00:00
|
|
|
- INIT_PLUGINS=true
|
2019-02-26 10:59:48 +00:00
|
|
|
- APP_URL=${URL_CMS}
|
2019-02-25 21:05:03 +00:00
|
|
|
- CMS_LINK_POLICY=force
|
2020-09-26 00:53:17 +00:00
|
|
|
labels:
|
|
|
|
- "traefik.enable=true"
|
|
|
|
- "traefik.http.routers.leopold-cms.entrypoints=http"
|
|
|
|
- "traefik.http.routers.leopold-cms.rule=Host(`cms.leopold.rayelliott.dev`)"
|
|
|
|
- "traefik.http.middlewares.leopold-cms-https-redirect.redirectscheme.scheme=https"
|
|
|
|
- "traefik.http.routers.leopold-cms.middlewares=traefik-https-redirect"
|
|
|
|
- "traefik.http.routers.leopold-cms-secure.entrypoints=https"
|
|
|
|
- "traefik.http.routers.leopold-cms-secure.rule=Host(`cms.leopold.rayelliott.dev`)"
|
|
|
|
- "traefik.http.routers.leopold-cms-secure.tls=true"
|
|
|
|
- "traefik.http.routers.leopold-cms-secure.tls.certresolver=http"
|
|
|
|
- "traefik.docker.network=traefik-proxy"
|
2019-02-25 14:35:01 +00:00
|
|
|
volumes:
|
2019-02-26 10:59:48 +00:00
|
|
|
- ./cms/plugins:/var/www/html/plugins
|
|
|
|
- ./cms/storage/app:/var/www/html/storage/app
|
|
|
|
- ./cms/storage/logs:/var/www/html/storage/logs
|
|
|
|
- ./cms/storage/database.sqlite:/var/www/html/storage/database.sqlite
|
|
|
|
- ./cms/themes:/var/www/html/themes
|