Skip to content

Instantly share code, notes, and snippets.

@ILiedAboutCake
Created October 13, 2020 04:10
Show Gist options
  • Save ILiedAboutCake/4042003d19de4e13b0801463294b70c2 to your computer and use it in GitHub Desktop.
Save ILiedAboutCake/4042003d19de4e13b0801463294b70c2 to your computer and use it in GitHub Desktop.
version: '3.4'
services:
web:
image: nginx:stable-alpine
container_name: dgg-nginx
ports:
- "8080:8080"
volumes:
- ./website:/www/www.destiny.gg/
- ./docker/config/nginx/dgg.conf:/etc/nginx/conf.d/dgg.conf:ro
- ./docker/config/nginx/dgg_csp.conf:/etc/nginx/dgg_csp.conf:ro
restart: unless-stopped
links:
- php
php:
build:
context: ./website
dockerfile: Dockerfile
container_name: dgg-phpfpm
volumes:
- ./docker/config/dgg-web/config.local.php:/www/www.destiny.gg/config/config.local.php:ro
- ./docker/logs/php:/www/www.destiny.gg/log
- ./website/static:/www/www.destiny.gg/static
depends_on:
- redis
- mariadb
redis:
image: redis
container_name: dgg-redis
volumes:
- ./docker/data/redis:/data
restart: unless-stopped
mariadb:
image: mariadb:latest
container_name: dgg_mariadb
environment:
- MYSQL_ROOT_PASSWORD=xxxxxxxxxxxxx
- MYSQL_DATABASE=destinygg
volumes:
- ./docker/data/mariadb:/var/lib/mysql
ports:
- "3306:3306"
restart: unless-stopped
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment