forked from JanMikes/terlicko.cz
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
87 lines (82 loc) · 2.29 KB
/
compose.yaml
File metadata and controls
87 lines (82 loc) · 2.29 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
volumes:
caddy_data:
caddy_config:
postgres_data:
redis_data:
services:
frontend:
image: ghcr.io/thedevs-cz/php:8.4
restart: unless-stopped
tty: true
volumes:
- ./frontend:/app
- ./frontend/docker-entrypoint.sh:/usr/local/bin/docker-php-entrypoint
- ./frontend/conf.d/php.ini:/usr/local/etc/php/conf.d/php-custom.ini
- ./strapi/public/uploads:/app/public/uploads
- caddy_data:/data
- caddy_config:/config
ports:
- "8080:80"
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_healthy
environment:
XDEBUG_CONFIG: "client_host=host.docker.internal"
XDEBUG_MODE: debug
PHP_IDE_CONFIG: "serverName=localhost"
SERVER_NAME: :80
strapi:
image: terlicko-strapi
build:
context: ./strapi
target: dev
environment:
DATABASE_CLIENT: postgres
DATABASE_NAME: terlicko_strapi
DATABASE_HOST: postgres
DATABASE_PORT: 5432
DATABASE_USERNAME: postgres
DATABASE_PASSWORD: postgres
volumes:
- ./strapi:/app
ports:
- '1337:1337'
depends_on:
- postgres
postgres:
image: pgvector/pgvector:pg17
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: terlicko
volumes:
- postgres_data:/var/lib/postgresql/data
ports:
- "5432:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 5s
retries: 5
redis:
image: redis:7-alpine
restart: unless-stopped
volumes:
- redis_data:/data
ports:
- "6379:6379"
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 3s
retries: 5
adminer:
image: adminer:5.3.0
ports:
- "8000:8080"
environment:
ADMINER_DEFAULT_SERVER: postgres
depends_on:
- postgres