-
Notifications
You must be signed in to change notification settings - Fork 38
/
Copy pathdocker-compose.yml
44 lines (40 loc) · 940 Bytes
/
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
version: '2'
services:
mongo:
container_name: mongo
image: mongo:latest
volumes:
- ./data/mongo:/data/db
user: "${UID_GID}"
ports:
- "27017:27017"
networks:
- common
restart: always
redis:
container_name: redis
image: redis:alpine
command: ["redis-server", "--appendonly", "yes"]
volumes:
- ./data/redis:/data
user: "${UID_GID}"
ports:
- "6379:6379"
networks:
- common
restart: always
mysql:
container_name: mysql
image: mysql:5.7
volumes:
- ./data/mysql:/var/lib/mysql
user: "${UID_GID}"
ports:
- "3306:3306"
environment:
MYSQL_ROOT_PASSWORD: 'justapassword'
networks:
- common
restart: always
networks:
common: