-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
101 lines (88 loc) · 1.98 KB
/
docker-compose.yml
File metadata and controls
101 lines (88 loc) · 1.98 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
version: "2.2"
volumes:
stackerdb:
driver: local
stacker-redis-data:
driver: local
networks:
backend:
driver: bridge
name: backend
external: true
services:
stacker:
image: trydirect/stacker:0.0.8
build: .
container_name: stacker
restart: always
volumes:
- ./stacker/files:/app/files
- ./configuration.yaml:/app/configuration.yaml
- ./access_control.conf:/app/access_control.conf
- ./migrations:/app/migrations
- ./.env:/app/.env
ports:
- "8000:8000"
env_file:
- ./.env
environment:
- RUST_LOG=debug
- RUST_BACKTRACE=full
depends_on:
stackerdb:
condition: service_healthy
networks:
- backend
stacker_queue:
image: trydirect/stacker:0.0.7
container_name: stacker_queue
restart: always
volumes:
- ./configuration.yaml:/app/configuration.yaml
- ./.env:/app/.env
environment:
- RUST_LOG=debug
- RUST_BACKTRACE=1
env_file:
- ./.env
depends_on:
stackerdb:
condition: service_healthy
entrypoint: /app/console mq listen
networks:
- backend
stackerdb:
container_name: stackerdb
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 5s
retries: 5
image: postgres:18.1
restart: always
ports:
- 5432
env_file:
- ./.env
volumes:
- stackerdb:/var/lib/postgresql/data
- ./postgresql.conf:/etc/postgresql/postgresql.conf
networks:
- backend
stackerredis:
container_name: stackerredis
image: redis:latest
restart: always
ports:
- 127.0.0.1:6379:6379
volumes:
- stacker-redis-data:/data
# - ./redis/rc.local:/etc/rc.local
# - ./redis/redis.conf:/usr/local/etc/redis/redis.conf
sysctls:
net.core.somaxconn: 1024
logging:
driver: "json-file"
options:
max-size: "10m"
tag: "container_{{.Name}}"