-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathdocker-compose.local.yml
73 lines (66 loc) · 1.29 KB
/
docker-compose.local.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
version: "3.8"
volumes:
nft-charity-mongodb:
networks:
nft-charity:
driver: bridge
services:
backend:
container_name: backend
restart: always
env_file:
- ./backend/.env.dev
build:
context: backend
dockerfile: Dockerfile
ports:
- "8080:8080"
depends_on:
- mongodb
networks:
- nft-charity
mongodb:
container_name: mongodb
image : mongo
restart: always
environment:
- PUID=1000
- PGID=1000
volumes:
- nft-charity-mongodb:/data/db
ports:
- 27017:27017
networks:
- nft-charity
frontend:
container_name: frontend
restart: always
build:
context: frontend
dockerfile: Dockerfile
ports:
- "8089:80"
env_file:
- ./frontend/.env.dev
volumes:
- ./frontend:/app
- /app/node_modules
depends_on:
- backend
networks:
- nft-charity
cronjob:
container_name: cronjob
restart: always
build:
context: workers
dockerfile: local.Dockerfile
environment:
- CRON_CHECK_INTERVAL_IN_MINUTES=5
- MONGODB_URL=MONGODB_URL
- ETHER_SCAN_API_BASE_URL=ETHER_SCAN_API_BASE_URL
- ETHER_SCAN_API_KEY=ETHER_SCAN_API_KEY
depends_on:
- backend
networks:
- nft-charity