-
Notifications
You must be signed in to change notification settings - Fork 0
/
example.docker-compose.yml
63 lines (58 loc) · 1.35 KB
/
example.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
version: "3.7"
services:
api:
image: test-task-api:latest
container_name: test-task-api
depends_on:
image-handler:
condition: service_started
ports:
- "8001:80"
volumes:
- ./media:/media
- ./.env:/code/.env
image-handler:
image: image_handler:latest
container_name: image-handler
depends_on:
db_saver:
condition: service_started
volumes:
- ./.env:/code/.env
- ./image_handler_logs:/code/src/logs
- ./fonts:/code/src/fonts
db_saver:
image: db_saver:latest
container_name: db_saver
depends_on:
postgresql:
condition: service_healthy
volumes:
- ./media/:/media
- ./.env:/app/.env
- ./db_saver_logs:/app/logs
postgresql:
image: postgres:16.4-bullseye
container_name: postgresql
hostname: postgresql
healthcheck:
test: [ "CMD-SHELL", "pg_isready -d tmp_db -U db_admin" ]
interval: 5s
timeout: 5s
retries: 5
expose:
- 5432
volumes:
- ./postgresql:/var/lib/postgresql/data
environment:
POSTGRES_USER: db_admin
POSTGRES_PASSWORD: localpass
POSTGRES_DB: tmp_db
redis:
image: redis/redis-stack-server:latest
container_name: redis
hostname: redis
expose:
- 6379
environment:
REDIS_ARGS: "--requirepass localpass"