[add] Volumes directory

This commit is contained in:
Jose Pabl Domingo Aramburo Sanchez 2018-08-12 01:25:11 +00:00
parent 0cdfd21fa2
commit f820a22a4f
3 changed files with 8 additions and 2 deletions

View File

@ -5,6 +5,8 @@ services:
build: api-payroll/ build: api-payroll/
ports: ports:
- "8085:80" - "8085:80"
volumes:
- ./volumes/apache-logs:/var/log/apache2
depends_on: depends_on:
- mysql - mysql
mysql: mysql:
@ -16,10 +18,11 @@ services:
ports: ports:
- "3307:3307" - "3307:3307"
volumes: volumes:
- my-datavolume:/var/lib/mysql - ./volumes/mysql-data:/var/lib/mysql
environment: environment:
MYSQL_ROOT_PASSWORD: '12345678' MYSQL_ROOT_PASSWORD: '12345678'
MYSQL_USER: 'sloth' MYSQL_USER: 'sloth'
MYSQL_PASS: '12345678' MYSQL_PASS: '12345678'
volumes: volumes:
my-datavolume: mysql-data:
apache-logs:

2
volumes/.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
mysql-data/
apache-logs/

1
volumes/README.md Normal file
View File

@ -0,0 +1 @@
# Do not delete this directory, it'll contain the volumes created by the containers