Last active
February 14, 2021 21:07
-
-
Save polterguy/f16f74fdffae67f762715ba5d60f9177 to your computer and use it in GitHub Desktop.
magic-docker-compose-example.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3.3" | |
services: | |
db: | |
image: mysql | |
restart: always | |
environment: | |
MYSQL_ROOT_PASSWORD: ThisIsNotAGoodPassword | |
volumes: | |
- database:/var/lib/mysql | |
backend: | |
image: servergardens/magic-backend:latest | |
depends_on: | |
- db | |
restart: always | |
ports: | |
- 4444:80 | |
volumes: | |
- files:/magic/files | |
frontend: | |
image: servergardens/magic-frontend:latest | |
depends_on: | |
- backend | |
restart: always | |
nginx: | |
image: valian/docker-nginx-auto-ssl | |
restart: always | |
ports: | |
- 80:80 | |
- 443:443 | |
volumes: | |
- ssl_data:/etc/resty-auto-ssl | |
environment: | |
ALLOWED_DOMAINS: '(domain|api-domain)' | |
SITES: 'domain=frontend:80;api-domain=backend:4444' | |
volumes: | |
database: | |
files: | |
ssl_data: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment