2024-03-30 02:29:56 +00:00
|
|
|
services:
|
|
|
|
web:
|
2024-05-23 16:15:02 +00:00
|
|
|
build: ./build/nginx
|
2024-03-30 02:29:56 +00:00
|
|
|
restart: unless-stopped
|
|
|
|
ports:
|
2024-05-23 16:15:02 +00:00
|
|
|
- '80:8080'
|
2024-03-30 02:29:56 +00:00
|
|
|
volumes:
|
2024-04-01 15:09:25 +00:00
|
|
|
- ./src:/opt/xssbook:ro
|
2024-05-23 16:15:02 +00:00
|
|
|
- ./conf/nginx/nginx.conf:/etc/nginx/nginx.conf:ro
|
2024-03-30 02:29:56 +00:00
|
|
|
depends_on:
|
|
|
|
- rest
|
|
|
|
- php
|
|
|
|
|
|
|
|
php:
|
|
|
|
build: ./build/php
|
|
|
|
restart: unless-stopped
|
|
|
|
env_file:
|
|
|
|
- ./conf/postgres/database.env
|
|
|
|
volumes:
|
2024-04-01 15:09:25 +00:00
|
|
|
- ./src:/opt/xssbook:ro
|
|
|
|
- ./data/status:/status:ro
|
|
|
|
- ./data/session:/var/lib/php/session
|
2024-03-30 02:29:56 +00:00
|
|
|
depends_on:
|
|
|
|
- db
|
|
|
|
|
|
|
|
db:
|
|
|
|
build: ./build/postgres
|
|
|
|
restart: unless-stopped
|
|
|
|
env_file:
|
|
|
|
- ./conf/postgres/database.env
|
|
|
|
environment:
|
|
|
|
- POSTGRES_INITDB_ARGS=--encoding=UTF-8 --lc-collate=C --lc-ctype=C
|
|
|
|
volumes:
|
|
|
|
- './data/schemas:/var/lib/postgresql/data'
|
2024-04-01 15:09:25 +00:00
|
|
|
- ./src/db:/db:ro
|
2024-03-30 02:29:56 +00:00
|
|
|
|
|
|
|
rest:
|
|
|
|
build: ./build/postgrest
|
2024-05-20 21:11:38 +00:00
|
|
|
restart: unless-stopped
|
2024-03-30 02:29:56 +00:00
|
|
|
env_file:
|
|
|
|
- ./conf/postgres/database.env
|
|
|
|
depends_on:
|
|
|
|
- db
|
|
|
|
|
|
|
|
init:
|
2024-05-20 21:11:38 +00:00
|
|
|
build: ./build/init
|
|
|
|
restart: no
|
2024-03-30 02:29:56 +00:00
|
|
|
env_file:
|
|
|
|
- ./conf/postgres/database.env
|
|
|
|
volumes:
|
2024-04-01 15:09:25 +00:00
|
|
|
- ./src/db:/db:ro
|
2024-03-30 02:29:56 +00:00
|
|
|
- ./data/status:/status
|
|
|
|
depends_on:
|
|
|
|
- db
|
|
|
|
|
2024-05-20 21:11:38 +00:00
|
|
|
shim:
|
|
|
|
build: ./build/shim
|
|
|
|
restart: no
|
|
|
|
env_file:
|
|
|
|
- ./conf/postgres/database.env
|
|
|
|
volumes:
|
|
|
|
- ./src/shim:/opt/shim:ro
|
|
|
|
- ./data/status:/status:ro
|
|
|
|
- ./data/shim/:/data:ro
|
|
|
|
depends_on:
|
|
|
|
- db
|