-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
68 lines (63 loc) · 1.42 KB
/
docker-compose.yml
File metadata and controls
68 lines (63 loc) · 1.42 KB
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
x-common: &common
logging:
driver: "json-file"
options:
max-size: "500m"
max-file: "5"
compress: "true"
restart: unless-stopped
networks:
- collabberry-backend
services:
backend:
<<: *common
container_name: backend
build: .
environment:
JWT_SECRET: secret
INVITATION_URL: "http://localhost:3000/invitation"
PORT: 3000
DB_HOST: mysql
DB_PORT: 3306
DB_PASS: password
DB_NAME: collabberry
DB_UNAME: root
ARBITRUM_RPC_URL: https://arb1.arbitrum.io/rpc
ARBITRUM_SEPOLIA_RPC_URL: https://api.zan.top/arb-sepolia
CELO_RPC_URL: https://forno.celo.org
ports:
- 3000:3000
depends_on:
- mysql
scheduled-jobs:
<<: *common
container_name: scheduled-jobs
build: .
environment:
ROUNDS_START_GENERATION_SCHEDULE: "* * * * *"
COMPLETE_ROUNDS_SCHEDULE: "* * * * *"
DB_HOST: mysql
DB_PORT: 3306
DB_PASS: password
DB_NAME: collabberry
DB_UNAME: root
command: ["node", "/app/dist/src/roundsStartJob.index.js"]
depends_on:
- mysql
mysql:
<<: *common
container_name: mysql
image: mysql:latest
environment:
MYSQL_ROOT_PASSWORD: password
MYSQL_DATABASE: collabberry
volumes:
- mysql-data:/var/lib/mysql
ports:
- 3306:3306
networks:
collabberry-backend:
driver: bridge
volumes:
mysql-data:
driver: local