forked from richardlt/stargazer
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
57 lines (52 loc) · 1.14 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
---
version: '3.8'
services:
stargazer:
image: x0rzkov/stargazer:latest
build:
context: .
dockerfile: Dockerfile
container_name: ${NAMESPACE}-stargazer
networks:
- internal
- web
command: ["stargazer","web"]
mysql:
image: x0rzkov/mysql-multi:5-ubuntu
build:
context: .docker/storage/mysql5-multi
dockerfile: Dockerfile
container_name: ${NAMESPACE}-multidb
ports:
- 3309:3306
volumes:
- db-data:/var/lib/mysql
networks:
- internal
- web
environment:
MYSQL_MULTIPLE_DATABASES: stargazer
MYSQL_PASSWORD: ${STARGAZER_MYSQL_PASSWORD}
MYSQL_ROOT_PASSWORD: ${STARGAZER_MYSQL_ROOT_PASSWORD}
MYSQL_USER: ${STARGAZER_MYSQL_USER}
restart: unless-stopped
mongodb:
image: mongo:latest
container_name: ${NAMESPACE}-mongodb
volumes:
- mongo-data:/var/lib/mongodb/db
- mongo-backup:/var/lib/backup
ports:
- 27017:27017
networks:
- internal
command: mongod --replSet mongodb0 --smallfiles
networks:
internal:
driver: bridge
web:
external: true
volumes:
db-data:
mongo-data:
mongo-backup: