arkhamdb-docker/docker-compose.yml

33 lines
713 B
YAML
Raw Normal View History

2020-11-24 00:03:01 -05:00
version: '3'
services:
arkhamdb:
2020-11-24 00:14:16 -05:00
build:
context: .
target: php-fpm
2020-11-24 00:03:01 -05:00
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:
2020-11-24 00:14:16 -05:00
build:
context: .
target: nginx
2020-11-24 00:03:01 -05:00
depends_on:
- arkhamdb
restart: always
ports:
- 127.0.0.1:80:80
volumes:
- ./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