-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yml
68 lines (64 loc) · 1.71 KB
/
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
64
65
66
67
68
services:
hoshizora-pics:
container_name: hoshizora-pics
image: shiinakin/hoshizora-pics:0.4.0
build:
context: .
dockerfile: Dockerfile
ports:
- "8080:8080"
depends_on:
hoshizora-pics-postgres:
condition: service_healthy
hoshizora-pics-redis:
condition: service_healthy
environment:
DATABASE_DRIVER: org.postgresql.Driver
DATABASE_URL: jdbc:postgresql://hoshizora-pics-postgres:5432/hoshizora
DATABASE_USERNAME: postgres
DATABASE_PASSWORD: passwd
REDIS_HOST: hoshizora-pics-redis
REDIS_PORT: 6379
CLIENT_PROXY_ADDRESS: disabled
JWT_SECRET: your-secret
JWT_ISSUER: https://some.issuer
JWT_AUDIENCE: https://some.audience
JWT_REALM: hoshizora-pics
volumes:
- hoshizora-pics-data:/hoshizora/images
networks:
- hoshizora-pics-net
hoshizora-pics-postgres:
container_name: hoshizora-pics-postgres
image: postgres:16.6-alpine
environment:
POSTGRES_PASSWORD: passwd
POSTGRES_DB: hoshizora
volumes:
- hoshizora-pics-database:/var/lib/postgresql/data
networks:
- hoshizora-pics-net
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 5s
retries: 5
hoshizora-pics-redis:
container_name: hoshizora-pics-redis
image: redis:7.4.1-alpine
networks:
- hoshizora-pics-net
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 5s
retries: 5
networks:
hoshizora-pics-net:
name: hoshizora-pics-net
driver: bridge
volumes:
hoshizora-pics-data:
name: hoshizora-pics-data
hoshizora-pics-database:
name: hoshizora-pics-database