Compose file for development
This commit is contained in:
parent
93de0bea49
commit
bd7c6aef84
25
docker-compose.dev.yml
Normal file
25
docker-compose.dev.yml
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
version: '2'
|
||||||
|
|
||||||
|
services:
|
||||||
|
|
||||||
|
namelessmc:
|
||||||
|
build: nginx_web
|
||||||
|
ports: ['80:80']
|
||||||
|
volumes: ['/srv/namelessmc/web:/data'] # same as php container
|
||||||
|
depends_on: [namelessmc_php]
|
||||||
|
restart: unless-stopped
|
||||||
|
|
||||||
|
namelessmc_php:
|
||||||
|
build: php_fpm
|
||||||
|
volumes: ['/srv/namelessmc/web:/data'] # same as web container
|
||||||
|
restart: unless-stopped
|
||||||
|
|
||||||
|
namelessmc_db:
|
||||||
|
image: mariadb
|
||||||
|
volumes: ['/srv/namelessmc/db:/var/lib/mysql']
|
||||||
|
environment:
|
||||||
|
MYSQL_ROOT_PASSWORD: nameless
|
||||||
|
MYSQL_USER: nameless
|
||||||
|
MYSQL_PASSWORD: nameless
|
||||||
|
MYSQL_DATABASE: nameless
|
||||||
|
restart: unless-stopped
|
||||||
Loading…
x
Reference in New Issue
Block a user