forked from engineer-man/emkc
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
30 lines (30 loc) · 779 Bytes
/
docker-compose.yml
File metadata and controls
30 lines (30 loc) · 779 Bytes
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
version: '2'
services:
emkc:
container_name: emkc
build: .
ports:
- "2005:2727"
volumes:
- ./:/opt/emkc
links:
- redis
- mysql
redis:
container_name: emkc_redis
image: redis:3.2.12
volumes:
- ./:/opt/emkc
- ./var/docker/redis:/data
mysql:
container_name: emkc_mysql
image: mysql:5.6
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: emkc
command: --init-file /var/lib/init/db.sql
volumes:
- ./:/opt/emkc
- ./var/docker/mysql:/var/lib/mysql
- ./var/docker/init:/var/lib/init
- ./var/docker/config:/etc/mysql/conf.d