Repository navigation
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
64 lines (62 loc) · 1.85 KB
/
Copy pathdocker-compose.dev.yml
File metadata and controls
64 lines (62 loc) · 1.85 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
name: emfont-dev
x-common-env: &common-env
TZ: Asia/Taipei
# for logging timezone correctly display. You can change it to your local timezone.
services:
postgres:
image: postgres:16
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB}
ports:
- "${POSTGRES_PORT}:5432"
volumes:
- ./src/_data/docker/postgres:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}"]
interval: 3s
timeout: 3s
retries: 20
redis:
image: redis:7
ports:
- "${REDIS_PORT}:6379"
healthcheck:
test: redis-cli ping || exit 1
minio:
image: minio/minio:latest
command: server /data --console-address ":9001"
environment:
MINIO_ROOT_USER: ${MINIO_ROOT_USER}
MINIO_ROOT_PASSWORD: ${MINIO_ROOT_PASSWORD}
ports:
- "${MINIO_PORT}:9000"
- "${MINIO_CONSOLE_PORT}:9001"
volumes:
- ./src/_data/docker/minio:/data
healthcheck:
test: "curl -k -f http://127.0.0.1:9001/minio/health/live || exit 1"
interval: 1s
timeout: 10s
retries: 5
emfont-server:
image: emfont:latest # Ensure you have built this image using the Dockerfile. Now I haven't push image to public respository.
ports:
- "${PORT}:${PORT}"
volumes:
- ${EMFONT_ORIGINAL_FONTS:-./src/_data/original-fonts}:/app/src/_data/original-fonts
- ${EMFONT_GENERATED_FONTS:-./src/_data/_generated}:/app/src/_data/_generated
env_file:
- .env
environment:
<<: *common-env
PYROSCOPE_SERVER_ADDRESS: "http://pyroscope:4040"
PYROSCOPE_APPLICATION_NAME: "emfont-server"
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_started
minio:
condition: service_healthy