easyappointments/docker-compose.yml
2017-01-16 23:33:27 +01:00

23 lines
390 B
YAML

storage:
image: 'busybox:latest'
volumes:
- /var/lib/mysql
- ./src:/app
command: sleep 3153600000
database:
image: mysql:5.7
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: easyappointments
volumes_from:
- storage
restart: always
mem_limit: 200m
app:
build: ./
ports:
- 80:80
links:
- database:database
volumes_from:
- storage