This repository was archived by the owner on Feb 9, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose-dev.yml
More file actions
78 lines (73 loc) · 2.14 KB
/
Copy pathdocker-compose-dev.yml
File metadata and controls
78 lines (73 loc) · 2.14 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
services:
db:
image: postgres:17
restart: "no"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USERNAME} -d ${POSTGRES_DB} -p ${POSTGRES_PORT}"]
interval: 10s
retries: 5
start_period: 30s
timeout: 10s
volumes:
- app-db-data:/var/lib/postgresql/data/pgdata
ports:
- "127.0.0.1:${POSTGRES_PORT}:${POSTGRES_PORT}"
networks:
- default
env_file:
- .env
environment:
- PGDATA=/var/lib/postgresql/data/pgdata
- POSTGRES_USERNAME=${POSTGRES_USERNAME?Variable not set}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD?Variable not set}
- POSTGRES_DB=${POSTGRES_DB?Variable not set}
- POSTGRES_PORT=${POSTGRES_PORT?Variable not set}
command: -p ${POSTGRES_PORT}
redis:
image: redis:latest
restart: "no"
healthcheck:
test: ["CMD", "redis-cli", "-p", "${REDIS_PORT}", "-n", "${REDIS_DB}", "--no-auth-warning", "--raw", "incr", "ping"]
# test: ["CMD", "redis-cli", "-p", "${REDIS_PORT}", "-a", "${REDIS_PASSWORD}", "-n", "${REDIS_DB}", "--no-auth-warning", "--raw", "incr", "ping"]
interval: 10s
retries: 5
start_period: 30s
timeout: 10s
ports:
- "127.0.0.1:${REDIS_PORT}:${REDIS_PORT}"
expose:
- "${REDIS_PORT}"
volumes:
- redis-data:/data
environment:
- REDIS_PORT=${REDIS_PORT?Variable not set}
command: --port ${REDIS_PORT}
# prestart:
# build:
# context: .
# networks:
# - default
# depends_on:
# db:
# condition: service_healthy
# restart: true
# command: bash scripts/prestart.sh
# env_file:
# - .env
# environment:
# - ENVIRONMENT=${ENVIRONMENT}
# - POSTGRES_HOST=db
# - POSTGRES_PORT=${POSTGRES_PORT}
# - POSTGRES_DB=${POSTGRES_DB}
# - POSTGRES_USERNAME=${POSTGRES_USERNAME?Variable not set}
# - POSTGRES_PASSWORD=${POSTGRES_PASSWORD?Variable not set}
# bot:
# image: '${DOCKER_IMAGE_BACKEND?Variable not set}:${TAG-latest}'
# container_name: ankibenefitbot
# build: .
# restart: "no"
# env_file:
# - .env
volumes:
app-db-data:
redis-data: