2018-09-24 01:35:42 +02:00
|
|
|
## Example Docker Compose configuration
|
|
|
|
##
|
|
|
|
## Use this as a template to set up docker-compose, or as guide to set up other
|
|
|
|
## orchestration services
|
|
|
|
version: '2'
|
|
|
|
|
|
|
|
services:
|
2020-03-08 04:17:51 +01:00
|
|
|
|
2019-10-01 04:12:53 +02:00
|
|
|
server:
|
2019-11-27 01:13:10 +01:00
|
|
|
image: szurubooru/server:latest
|
2018-09-24 01:35:42 +02:00
|
|
|
depends_on:
|
|
|
|
- sql
|
|
|
|
environment:
|
2020-03-08 04:17:51 +01:00
|
|
|
## These should be the names of the dependent containers listed below,
|
2018-09-24 01:35:42 +02:00
|
|
|
## or FQDNs/IP addresses if these services are running outside of Docker
|
|
|
|
POSTGRES_HOST: sql
|
|
|
|
## Credentials for database:
|
|
|
|
POSTGRES_USER:
|
|
|
|
POSTGRES_PASSWORD:
|
|
|
|
## Commented Values are Default:
|
|
|
|
#POSTGRES_DB: defaults to same as POSTGRES_USER
|
|
|
|
#POSTGRES_PORT: 5432
|
|
|
|
#LOG_SQL: 0 (1 for verbose SQL logs)
|
2022-02-12 22:16:13 +01:00
|
|
|
THREADS:
|
2018-09-24 01:35:42 +02:00
|
|
|
volumes:
|
|
|
|
- "${MOUNT_DATA}:/data"
|
|
|
|
- "./server/config.yaml:/opt/app/config.yaml"
|
2020-03-08 04:17:51 +01:00
|
|
|
|
2018-09-24 01:35:42 +02:00
|
|
|
client:
|
2019-11-27 01:13:10 +01:00
|
|
|
image: szurubooru/client:latest
|
2018-09-24 01:35:42 +02:00
|
|
|
depends_on:
|
2019-10-01 04:12:53 +02:00
|
|
|
- server
|
2018-09-24 01:35:42 +02:00
|
|
|
environment:
|
2019-10-01 04:12:53 +02:00
|
|
|
BACKEND_HOST: server
|
2019-08-14 13:57:56 +02:00
|
|
|
BASE_URL:
|
2018-09-24 01:35:42 +02:00
|
|
|
volumes:
|
|
|
|
- "${MOUNT_DATA}:/data:ro"
|
|
|
|
ports:
|
|
|
|
- "${PORT}:80"
|
2020-03-08 04:17:51 +01:00
|
|
|
|
2018-09-24 01:35:42 +02:00
|
|
|
sql:
|
2019-05-10 21:56:52 +02:00
|
|
|
image: postgres:11-alpine
|
2018-09-24 01:35:42 +02:00
|
|
|
restart: unless-stopped
|
|
|
|
environment:
|
|
|
|
POSTGRES_USER:
|
|
|
|
POSTGRES_PASSWORD:
|
|
|
|
volumes:
|
|
|
|
- "${MOUNT_SQL}:/var/lib/postgresql/data"
|