-
Notifications
You must be signed in to change notification settings - Fork 34
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
35 lines (35 loc) · 907 Bytes
/
docker-compose.yml
File metadata and controls
35 lines (35 loc) · 907 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
31
32
33
34
35
version: '3'
services:
emkc:
container_name: emkc
build: .
ports:
- '2005:2727'
volumes:
- ./:/opt/emkc
environment:
APPENV: '${APPENV}'
restart: always
depends_on:
- redis
- mysql
redis:
container_name: emkc_redis
image: redis:3.2.12
volumes:
- ./:/opt/emkc
- ./var/docker/redis:/data
restart: always
mysql:
container_name: emkc_mysql
image: mysql:8
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
restart: always