-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-simple.yml
99 lines (90 loc) · 2.1 KB
/
docker-compose-simple.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
app:
container_name: "sxapi-core-dev"
extends:
file: docker-compose.yml
service: app
links:
- "db-redis"
# - "db-memcache"
- "db-postgres"
- "db-mariadb"
- "db-couchbase"
volumes:
- "./:/app:z"
- "./examples/full/sxapi.yml:/conf/sxapi.yml:z"
command: ["npm" , "start"]
db-redis:
image: redis:3.2.11-alpine
container_name: "sxapi-core-dev-db-redis"
mem_limit: 1g
memswap_limit: 2g
ports:
- "6379:6379"
#db-memcache:
# image: memcache:1.5.3-alpine
# container_name: "sxapi-core-dev-db-memcache"
# mem_limit: 1g
# memswap_limit: 2g
# ports:
# - "11211:11211"
db-postgres:
image: postgres:10.1-alpine
container_name: "sxapi-core-dev-db-postgres"
restart: always
ports:
- "5432"
environment:
POSTGRES_PASSWORD: hguyFtgfR4r9R4r76
db-mariadb:
image: mariadb:5.5
container_name: "sxapi-core-dev-db-mariadb"
mem_limit: 2g
memswap_limit: 3g
environment:
- MYSQL_ROOT_PASSWORD=hguyFtgfR4r9R4r76
#dbadminer:
# image: adminer
# container_name: "sxapi-core-dev-dbadminer"
# restart: always
# ports:
# - 8077:8077
# links:
# - "db-postgres"
# - "db-mariadb"
db-couchbase:
image: couchbase
container_name: "sxapi-core-dev-db-couchbase"
ports:
- 8091-8094:8091-8094
- 11210:11210
#dbpma:
# image: phpmyadmin/phpmyadmin:latest
# container_name: "sxapi-core-dev-dbpma"
# links:
# - db-mysql:db
# environment:
# - PMA_HOST=db
# - PMA_USER=root
# - PMA_PASSWORD=root
# - PMA_VERBOSE=true
# - PMA_PORT=3306
# - PMA_ABSOLUTE_URI=http://localhost:1901
# ports:
# - "1901:80"
dbtools:
image: startx/db-tools:latest
container_name: "sxapi-core-dev-dbtools"
links:
- db-mariadb:dbm
- db-couchbase:dbc
environment:
- MYSQL_ADMIN=root:hguyFtgfR4r9R4r76
- MYSQL_DATABASE=sxapicore_example
- MYSQL_USERS=sxapicore_example:sxapicore_example
- MYSQL_DUMP_DIR=/data/mysql
- COUCHBASE_ADMIN=sxapicore_example:sxapicore_example
- COUCHBASE_BUCKET=sxapicore_example
volumes:
- "./test/mock_data/couchbase:/data/couchbase:z"
- "./test/mock_data/mysql:/data/mysql:z"
command: ["recreate"]