generated from betagouv/rails-template
-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
74 lines (73 loc) · 1.41 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
version: '3'
services:
web:
image: aplypro
build: .
volumes:
- "./:/app"
- "/app/node_modules"
ports:
- "3000:3000"
- "12345:12345"
env_file:
- '.env.local'
depends_on:
- db
- redis
worker:
image: aplypro
env_file:
- '.env.local'
command: ["bundle", "exec", "sidekiq", "--queue", "default"]
volumes:
- "./:/app"
- "/app/node_modules"
entrypoint: ''
worker-docs:
image: aplypro
env_file:
- '.env.local'
command: ["bundle", "exec", "sidekiq", "--queue", "documents"]
volumes:
- "./:/app"
- "/app/node_modules"
entrypoint: ''
worker-payments:
image: aplypro
env_file:
- '.env.local'
command: ["bundle", "exec", "sidekiq", "--queue", "payments"]
volumes:
- "./:/app"
- "/app/node_modules"
entrypoint: ''
db:
# Scalingo only goes up to 14
image: postgres:14
environment:
POSTGRES_PASSWORD: 'dummy'
PGPORT: 5433
volumes:
- "./tmp/db:/var/lib/postgresql/data"
ports:
- "5433:5433"
redis:
image: redis
ports:
- "6379:6379"
asp-mock:
image: atmoz/sftp
volumes:
- ./mock/asp/:/home/asp/
ports:
- "2222:22"
command: asp:pass:1001
mock:
environment:
PORT: 3002
build:
context: './mock'
volumes:
- "./mock:/app"
ports:
- "3002:3002"