Migrate to a docker-compose config with a few persistence.
./data/nginx/ for nginx host configurations. ./data/mysql/ for mysql databases.
This commit is contained in:
14
docker-compose.yml
Normal file
14
docker-compose.yml
Normal file
@ -0,0 +1,14 @@
|
||||
version: '3'
|
||||
|
||||
services:
|
||||
nginx:
|
||||
image: nginx-dev
|
||||
network_mode: host
|
||||
build: .
|
||||
container_name: nginx
|
||||
hostname: nginx
|
||||
volumes:
|
||||
- ~/.mnt/Nginx:/var/www:Z
|
||||
- ./data/nginx/sites-available:/etc/nginx/sites-available:Z
|
||||
- ./data/nginx/sites-enabled:/etc/nginx/sites-enabled:Z
|
||||
- ./data/mysql/data:/var/lib/mysql/data:Z
|
Reference in New Issue
Block a user