fantus/docker-compose.prod.yml

49 lines
1.0 KiB
YAML
Raw Normal View History

2020-01-12 19:29:34 +01:00
version: '3.7'
networks:
traefik:
external: true
services:
front:
build: .
2020-01-17 01:12:12 +01:00
restart: unless-stopped
2020-01-12 19:29:34 +01:00
ports:
- 80
networks:
- traefik
labels:
- 'traefik.enable=true'
- 'traefik.backend=fantus'
- 'traefik.docker.network=traefik'
- 'traefik.frontend.rule=Host:fantus.studio'
- 'traefik.port=80'
2020-01-17 01:12:12 +01:00
mysql:
image: mysql:5.7
restart: unless-stopped
env_file: .directus
ports:
- 3306
volumes:
- ./data/db:/var/lib/mysql
directus:
image: directus/directus:v8-apache
restart: unless-stopped
env_file: .directus
volumes:
- ./data/config:/var/directus/config
- ./data/uploads:/var/directus/public/uploads
- ./custom.ini:/usr/local/etc/php/conf.d/custom.ini
networks:
- traefik
- default
labels:
- "traefik.enable=true"
- "traefik.port=80"
- "traefik.docker.network=traefik"
- "traefik.backend=fantus-api"
- "traefik.frontend.rule=Host:api.fantus.studio"