forked from smlsunxie/cargocms
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
119 lines (99 loc) · 2.05 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
version: '2'
services:
build:
container_name: sailsSample_dev
image: agileworks/sails_sample_env
command: "npm install"
ports:
- "5001:5001"
working_dir: /sailsSample
volumes:
- ./:/sailsSample
test:
container_name: debug #
image: agileworks/sails_sample_env
command: "npm run test-e2e-docker"
expose:
- "1338" #
ports:
- "5001:5001"
working_dir: /sailsSample
volumes:
- ./:/sailsSample
depends_on:
- "e2e-env"
networks:
- front-tier
debug:
container_name: debug
image: agileworks/sails_sample_env
command: "/bin/sh"
expose:
- "1338"
ports:
- "5001:5001"
volumes:
- ./:/sailsSample
working_dir: /sailsSample
depends_on:
- "e2e-env"
networks:
- front-tier
e2e-env:
container_name: e2e-env
image: selenium/standalone-firefox-debug:2.53.0
expose:
- "4444" #
ports:
- "5900:5900" #
networks:
- front-tier #
dev:
container_name: sailsSample_dev
image: agileworks/sails_sample_env
command: "npm start"
ports:
- "5001:5001"
working_dir: /sailsSample
volumes:
- ./:/sailsSample
networks:
- front-tier
mysql:
container_name: mysql
image: dgraziotin/mysql
expose:
- "3306"
ports:
- "3300:3306"
environment:
MYSQL_ADMIN_PASS: "root"
MYSQL_USER_NAME: "nodejsSample"
MYSQL_USER_DB: "nodejsSample"
MYSQL_USER_PASS: "nodejsSample"
CREATE_MYSQL_BASIC_USER_AND_DB: "true"
volumes:
- mysql-data:/var/lib/mysql/
networks:
- back-tier
backup:
image: ubuntu
volumes:
- ./:/backup
- mysql-data:/dbdata
command: "tar cvf /backup/backup.tar /dbdata"
restore:
image: ubuntu
volumes:
- ./:/backup
- mysql-data:/dbdata
working_dir: /dbdata
command: "tar xvf /backup/backup.tar --strip 1"
volumes:
mysql-data:
driver: local
networks:
front-tier:
driver: bridge
back-tier:
driver: bridge