-
-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathdocker-compose.yml
77 lines (71 loc) · 1.36 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
name: activityrank
configs:
privileges:
file: ./config/privileges.json
config:
file: ./config/config.json
secrets:
keys:
file: ./config/keys.json
services:
db:
container_name: Database
image: mysql:8.0
restart: always
environment:
- MYSQL_RANDOM_ROOT_PASSWORD=yes
volumes:
- ./docker/db/init:/docker-entrypoint-initdb.d
- ./docker/db/data:/var/lib/mysql
- ./docker/db/my.cnf:/etc/mysql/my.cnf
ports:
- '3306:3306'
command: --default-authentication-plugin=mysql_native_password
manager:
container_name: Manager
restart: always
init: true
build:
context: .
dockerfile: apps/manager/Dockerfile
image: 'activityrank/manager:dev'
depends_on:
- db
links:
- db
ports:
- '3005:3000'
secrets:
- keys
configs:
- config
bot:
build:
context: .
dockerfile: apps/bot/Dockerfile
container_name: Bot
configs:
- privileges
- config
secrets:
- keys
api:
container_name: Public-API
restart: always
init: true
build:
context: .
dockerfile: apps/api/Dockerfile
image: 'activityrank/api:dev'
depends_on:
- db
- manager
links:
- db
- manager
ports:
- '8080:3000'
secrets:
- keys
configs:
- config