arkhamdb-docker/docker-compose.yml

30 lines
669 B
YAML

version: '3'
services:
arkhamdb:
build: .
working_dir: /var/www/html
depends_on:
- database
restart: always
volumes:
- ./arkhamdb-json-data:/srv/arkhamdb-json-data
- ./000-default.conf:/etc/apache2/sites-enabled/000-default.conf
nginx:
image: nginx
depends_on:
- arkhamdb
restart: always
ports:
- 127.0.0.1:80:80
volumes:
- ./arkhamdb:/srv
- ./nginx.conf:/etc/nginx/conf.d/default.conf
database:
image: mariadb
restart: always
environment:
MYSQL_RANDOM_ROOT_PASSWORD: 'yes'
MYSQL_DATABASE: arkhamdb
MYSQL_USER: arkhamdb
MYSQL_PASSWORD: arkhamdb