-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
63 lines (58 loc) · 1.11 KB
/
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
version: '2'
services:
node:
container_name: "tagfans"
build:
context: ./node
volumes:
- ../:/app
expose:
- "9000"
ports:
- "5000:80"
links:
- redis
- mysql
# for production mode
# restart: always
mysql:
build:
context: ./mysql
volumes_from:
- volumes_data
ports:
- "3306:3306"
environment:
MYSQL_DATABASE: tagfans
MYSQL_USER: tagfans
MYSQL_PASSWORD: tagfans
MYSQL_ROOT_PASSWORD: tagfans
# for production mode
# restart: always
redis:
build: ./redis
volumes_from:
- volumes_data
ports:
- "6378:6379"
# for production mode
# restart: always
phpmyadmin:
build: ./phpmyadmin
environment:
PMA_ARBITRARY: 1
MYSQL_USER: tagfans
MYSQL_PASSWORD: tagfans
MYSQL_ROOT_PASSWORD: tagfans
volumes_from:
- volumes_data
ports:
- "8080:80"
links:
- "mysql:db"
volumes_data:
image: tianon/true
volumes:
- ./data/mysql:/var/lib/mysql
- ./data/redis:/data
- ./data/sessions:/sessions