-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.ci-dev.yml
More file actions
65 lines (61 loc) · 1.51 KB
/
docker-compose.ci-dev.yml
File metadata and controls
65 lines (61 loc) · 1.51 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
x-common: &common
logging:
driver: "json-file"
options:
max-size: "500m"
max-file: "5"
compress: "true"
env_file:
- .compose.secrets.env
restart: unless-stopped
networks:
- collabberry-backend
services:
backend:
<<: *common
container_name: backend
build: .
image: collabberry/backend-app:latest
environment:
JWT_SECRET: secret
INVITATION_URL: "http://localhost:3000/invitation"
PORT: 3000
DB_HOST: mysql
DB_PORT: 3306
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
# DB_PASS: # Read from secrets
DB_NAME: collabberry
DB_UNAME: root
depends_on:
- mysql
scheduled-jobs:
<<: *common
container_name: scheduled-jobs
image: collabberry/backend-app:latest
environment:
ROUNDS_START_GENERATION_SCHEDULE: "* * * * *"
COMPLETE_ROUNDS_SCHEDULE: "* * * * *"
DB_HOST: mysql
DB_PORT: 3306
# DB_PASS: # Read from secrets
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: # Read from secrets
MYSQL_DATABASE: collabberry
volumes:
- ./mysql-data:/var/lib/mysql
ports:
- 3306:3306
networks:
collabberry-backend:
driver: bridge