iflrandevu/docker-compose.yml

24 lines
390 B
YAML
Raw Normal View History

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