-
-
Notifications
You must be signed in to change notification settings - Fork 674
/
docker-compose.yml
91 lines (84 loc) · 1.87 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
services:
app:
build: .
restart: unless-stopped
ports:
- "3000:3000"
env_file:
- ./.env
depends_on:
- mongodb
- redis
# volumes:
# - .:/app
command: deno task dev
## Skip full-sync on startup:
# command: deno task dev:skip-full-sync
## Run full-sync manually:
# > docker exec -it pull-app-1 deno task full-sync
worker:
build: .
restart: unless-stopped
env_file:
- ./.env
depends_on:
- mongodb
- redis
- app
# volumes:
# - .:/app
command: deno task worker
deploy:
mode: replicated
replicas: 3
# If running without swarm mode, you can use the following command to scale the worker:
# > docker compose up -d --scale worker=3
mongodb:
image: mongo:8
restart: unless-stopped
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: mongodb_password
volumes:
- mongodb-data:/data/db
# ports:
# - "27017:27017"
redis:
image: redis:7.4
restart: unless-stopped
volumes:
- redis-data:/data
# ports:
# - "6379:6379"
# mongo-express:
# image: mongo-express
# restart: unless-stopped
# depends_on:
# - mongodb
# environment:
# ME_CONFIG_MONGODB_URL: mongodb://root:mongodb_password@mongodb:27017/
# ME_CONFIG_BASICAUTH: false
# ports:
# - "8081:8081"
# redis-commander:
# image: rediscommander/redis-commander:latest
# restart: unless-stopped
# environment:
# REDIS_HOSTS: redis
# depends_on:
# - redis
# ports:
# - "8082:8081"
# bullboard:
# image: addono/bull-board:latest
# restart: unless-stopped
# environment:
# REDIS_HOST: redis
# PORT: 8083
# depends_on:
# - redis
# ports:
# - "8083:8083"
volumes:
mongodb-data:
redis-data: