ai/at
1
0
This commit is contained in:
2025-06-28 07:51:17 +09:00
parent bd84914e1c
commit d0e7f32d39
2 changed files with 52 additions and 25 deletions

View File

@@ -97,17 +97,40 @@ services:
redis: redis:
condition: service_healthy condition: service_healthy
jetstream: ozone:
build:
context: ./repos/jetstream/
dockerfile: Dockerfile
ports: ports:
- 6008:6008 - 2585:3000
volumes: build:
- ./data/jetstream:/data context: ./repos/atproto/
dockerfile: services/ozone/Dockerfile
restart: always restart: always
command: node --enable-source-maps api.js
volumes:
- ./data/ozone/:/data/
- ./repos/ozone.js:/app/services/ozone/api.js:ro
env_file: env_file:
- ./envs/jetstream - ./envs/ozone
healthcheck:
test: "wget -q --spider http://localhost:3000/xrpc/_health"
interval: 5s
retries: 20
depends_on:
database:
condition: service_healthy
ozone-daemon:
build:
context: ./repos/atproto/
dockerfile: services/ozone/Dockerfile
restart: always
command: node --enable-source-maps daemon.js
env_file:
- ./envs/ozone
depends_on:
ozone:
condition: service_healthy
database:
condition: service_healthy
ozone-web: ozone-web:
build: build:
@@ -123,26 +146,21 @@ services:
database: database:
condition: service_healthy condition: service_healthy
ozone: jetstream:
build: build:
context: ./repos/atproto/ context: ./repos/jetstream/
dockerfile: services/ozone/Dockerfile dockerfile: Dockerfile
ports: ports:
- 2585:3000 - 6008:6008
restart: always
command: node --enable-source-maps api.js
volumes: volumes:
- ./data/ozone/:/data/ - ./data/jetstream:/data
restart: always
env_file: env_file:
- ./envs/ozone - ./envs/jetstream
ozone-daemon: ipcc:
build: image: nginx:alpine
context: ./repos/atproto/
dockerfile: services/ozone/Dockerfile
restart: always
command: node --enable-source-maps daemon.js
volumes: volumes:
- ./data/ozone/:/data/ - ./configs/nginx/ipcc.conf:/etc/nginx/conf.d/default.conf
env_file: ports:
- ./envs/ozone - 8099:80

9
configs/nginx/ipcc.conf Normal file
View File

@@ -0,0 +1,9 @@
server {
listen 80;
location / {
add_header Content-Type application/json;
add_header Access-Control-Allow-Origin *;
return 200 '{"countryCode":"JP"}';
}
}