63 lines
1.2 KiB
YAML
63 lines
1.2 KiB
YAML
|
services:
|
||
|
web:
|
||
|
image: nginx:alpine
|
||
|
restart: unless-stopped
|
||
|
ports:
|
||
|
- '80:80'
|
||
|
volumes:
|
||
|
- ./web:/opt/xssbook
|
||
|
- ./conf/nginx:/etc/nginx/conf.d:ro
|
||
|
depends_on:
|
||
|
- rest
|
||
|
- swagger
|
||
|
- php
|
||
|
|
||
|
php:
|
||
|
build: ./build/php
|
||
|
restart: unless-stopped
|
||
|
env_file:
|
||
|
- ./conf/postgres/database.env
|
||
|
volumes:
|
||
|
- ./web:/opt/xssbook
|
||
|
- ./data/status:/status
|
||
|
depends_on:
|
||
|
- db
|
||
|
|
||
|
db:
|
||
|
#image: postgres:16-alpine
|
||
|
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'
|
||
|
- ./db:/db:ro
|
||
|
|
||
|
rest:
|
||
|
build: ./build/postgrest
|
||
|
env_file:
|
||
|
- ./conf/postgres/database.env
|
||
|
depends_on:
|
||
|
- db
|
||
|
|
||
|
init:
|
||
|
build: ./build/dbinit
|
||
|
env_file:
|
||
|
- ./conf/postgres/database.env
|
||
|
volumes:
|
||
|
- ./db:/db:ro
|
||
|
- ./data/status:/status
|
||
|
depends_on:
|
||
|
- db
|
||
|
|
||
|
swagger:
|
||
|
image: swaggerapi/swagger-ui
|
||
|
environment:
|
||
|
SWAGGER_JSON_URL: '/api'
|
||
|
BASE_URL: '/apidocs'
|
||
|
PORT: 3000
|
||
|
depends_on:
|
||
|
- db
|