-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yml
More file actions
155 lines (139 loc) · 4.11 KB
/
Copy pathcompose.yml
File metadata and controls
155 lines (139 loc) · 4.11 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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
name: otomadb-ppb
version: "3.9"
services:
graphql-api:
build:
context: ./graphql-api
dockerfile: Dockerfile
depends_on:
postgres:
condition: service_healthy
neo4j:
condition: service_healthy
redis:
condition: service_healthy
postgres-migration:
condition: service_completed_successfully
env_file:
- .env.prod
environment:
ENABLE_GRAPHIQL: "true"
ENABLE_INTROSPECTION: "true"
# Servies
IXGYOHN_BASE_URL: http://ixgyohn:38080
# Prisma (Postgres)
PRISMA_DATABASE_URL: "postgres://user:pass@postgres:5432/test"
# Meilisearch
MEILISEARCH_URL: "http://meilisearch:7700"
# Neo4j
NEO4J_URL: "bolt://neo4j:7687"
NEO4J_USERNAME: "neo4j"
NEO4J_PASSWORD: "password"
# Redis
REDIS_URL: "redis://redis:6379"
ports:
- target: 8080
published: 4000
postgres:
image: postgres:15@sha256:bec340fb35711dd4a989146591b6adfaac53e6b0c02524ff956c43b054d117dd
healthcheck:
test: pg_isready
interval: 10s
timeout: 5s
retries: 5
environment:
POSTGRES_USER: user
POSTGRES_PASSWORD: pass
POSTGRES_DB: test
volumes:
- type: volume
source: postgres_data
target: /var/lib/postgresql/data
ports:
- target: 5432
published: 15432
postgres-migration:
build:
context: ./main-prisma
dockerfile: Dockerfile
depends_on:
postgres:
condition: service_healthy
environment:
PRISMA_DATABASE_URL: "postgres://user:pass@postgres:5432/test"
pgweb:
image: sosedoff/pgweb
ports:
- target: 8081
published: 4001
depends_on:
postgres:
condition: service_healthy
postgres-migration:
condition: service_completed_successfully
environment:
DATABASE_URL: postgres://user:pass@postgres:5432/test?sslmode=disable
nicovideo-updater:
build:
context: ./nicovideo-updater
dockerfile: Dockerfile
depends_on:
postgres:
condition: service_healthy
postgres-migration:
condition: service_completed_successfully
environment:
PRISMA_DATABASE_URL: "postgres://user:pass@postgres:5432/test"
neo4j:
image: neo4j:5.15@sha256:9c564b96267ab1b2c64944808d3b4cb054c6b7be684cd98027804effefe6db8f
environment:
NEO4J_AUTH: neo4j/password
healthcheck:
test: neo4j status || exit 1 # TODO:
interval: 10s
timeout: 5s
retries: 5
volumes:
- type: volume
source: neo4j_data
target: /data
- type: volume
source: neo4j_logs
target: /logs
redis:
image: redis:7.2@sha256:249e1bfb9448ae9e76807748f8cb3c5cc73e55441b7b36364c61a7428c9e814c
healthcheck:
test: redis-cli ping
interval: 10s
timeout: 5s
retries: 5
meilisearch:
image: getmeili/meilisearch:v1.0@sha256:dd8162da4cebbdec1ab6176754cff941b04427e7f8df532896a920ec3d292d8a
volumes:
- type: volume
source: meilisearch_data
target: /meili_data
imgproxy:
image: darthsim/imgproxy:latest@sha256:68b76f9d056d4105d5eac3072a430db12a766ffb0fbdbfd11b4fc48c1dc80df4
ports:
- target: 8080
published: 18080
environment:
IMGPROXY_KEY: "cdfd5eace0fdef0fb3266cde7047fb4c0ddee095e6628b9d2bf1d0119a74fca8a9ceef808129dc023adb7cc64b942b102ff54b36112695a0ac376348654a5830"
IMGPROXY_SALT: "14b77ca054ebbf64fd72c8bc4ee5cd7d9708e444f19c632aa13c2082d05bcab077ffd88eb14e30cb19cb18b877a8f202a39a93bcab633f7eda430b2ecbecdf30"
ixgyohn:
build:
context: ./ixgyohn
dockerfile: Dockerfile
ports:
- target: 38080
published: 48080
environment:
IMGPROXY_URL: "http://localhost:18080"
IMGPROXY_KEY: "cdfd5eace0fdef0fb3266cde7047fb4c0ddee095e6628b9d2bf1d0119a74fca8a9ceef808129dc023adb7cc64b942b102ff54b36112695a0ac376348654a5830"
IMGPROXY_SALT: "14b77ca054ebbf64fd72c8bc4ee5cd7d9708e444f19c632aa13c2082d05bcab077ffd88eb14e30cb19cb18b877a8f202a39a93bcab633f7eda430b2ecbecdf30"
volumes:
postgres_data:
neo4j_data:
neo4j_logs:
meilisearch_data: