-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
69 lines (61 loc) · 1.46 KB
/
docker-compose.yml
File metadata and controls
69 lines (61 loc) · 1.46 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
version: "2.2"
volumes:
stackerdb:
driver: local
redis-data:
driver: local
services:
stacker:
image: trydirect/stacker:test
build: .
container_name: stacker
restart: always
volumes:
- ./files:/app/files
- ./docker/local/configuration.yaml:/app/configuration.yaml
- ./access_control.conf:/app/access_control.conf
- ./migrations:/app/migrations
- ./docker/local/.env:/app/.env
ports:
- "8000:8000"
env_file:
- ./docker/local/.env
environment:
- RUST_LOG=debug
- RUST_BACKTRACE=1
depends_on:
stackerdb:
condition: service_healthy
redis:
container_name: redis
image: redis
restart: always
ports:
- 6379:6379
volumes:
- 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}}"
stackerdb:
container_name: stackerdb
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 5s
retries: 5
image: postgres:18.3
restart: always
ports:
- 5432:5432
env_file:
- ./docker/local/.env
volumes:
- stackerdb:/var/lib/postgresql/data
- ./docker/local/postgresql.conf:/etc/postgresql/postgresql.conf