-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
37 lines (37 loc) · 948 Bytes
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
version: '2'
services:
app:
build:
context: ./
dockerfile: Dockerfile
volumes:
- ./:/var/www/html
ports:
- "8889:80" # web
- "444:443" # ssl
links:
- database
- cache
environment:
- "DB_PORT=3306"
- "DB_HOST=database"
- "REDIS_PORT=6379"
- "REDIS_HOST=cache"
container_name: weebly-mindbody-app
database:
image: mysql:5.7.13
environment:
- "MYSQL_ROOT_PASSWORD=root"
- "MYSQL_DATABASE=storesyncdb"
ports:
- "3319:3306"
volumes:
- ./docker/mysql:/var/lib/mysql
container_name: weebly-mindbody-db
cache:
image: redis:3.0
ports:
- "63791:6379"
volumes:
- ./docker/redis:/data
container_name: weebly-mindbody-cache