nopaque/docker-compose.yml

56 lines
1.7 KiB
YAML
Raw Permalink Normal View History

2024-08-01 10:00:34 +00:00
# This file is not meant to be modified, use the following files instead:
# - `.env`: Environment variables available within Docker Compose config files.
# - `db.env`: Environment variables for the database service.
# - `nopaque.env`: Environment variables for the nopaque service.
# - `docker-compose.override.yml`: Override the docker-compose.yml file.
# - The `docker-compose` directory includes examples for this.
2023-09-25 08:11:11 +00:00
networks:
2024-08-01 10:00:34 +00:00
nopaque:
attachable: true
driver: "overlay"
name: "${NOPAQUE_DOCKER_NETWORK_NAME}"
2020-04-08 15:21:42 +00:00
services:
2020-11-09 15:14:19 +00:00
db:
2024-08-01 10:00:34 +00:00
env_file: "db.env"
image: "postgres:11"
networks:
- "nopaque"
restart: "unless-stopped"
2020-11-09 15:14:19 +00:00
volumes:
2024-08-01 10:00:34 +00:00
- "./volumes/db/data:/var/lib/postgresql/data"
2020-11-09 15:14:19 +00:00
mq:
2024-08-01 10:00:34 +00:00
image: "redis:6"
networks:
- "nopaque"
restart: "unless-stopped"
2020-11-09 15:14:19 +00:00
volumes:
2024-08-01 10:00:34 +00:00
- "./volumes/mq/data:/data"
2020-11-09 15:14:19 +00:00
nopaque:
2023-09-25 08:11:11 +00:00
build: .
depends_on:
2024-08-01 10:00:34 +00:00
- "db"
- "mq"
2023-09-25 08:11:11 +00:00
env_file:
2024-08-01 10:00:34 +00:00
- "nopaque.env"
2023-09-25 08:11:11 +00:00
environment:
2024-08-01 10:00:34 +00:00
# DANGER: Don't change the following environment variables within a
# Docker Compose config file, use the `.env` file instead.
HOST_UID: "${HOST_UID}"
HOST_GID: "${HOST_GID}"
HOST_DOCKER_GID: "${HOST_DOCKER_GID}"
NOPAQUE_DATA_PATH: "${HOST_NOPAQUE_DATA_PATH}"
NOPAQUE_DOCKER_NETWORK_NAME: "${NOPAQUE_DOCKER_NETWORK_NAME}"
image: "nopaque:latest"
networks:
- "nopaque"
restart: "unless-stopped"
2019-09-05 12:43:36 +00:00
volumes:
2024-08-01 10:00:34 +00:00
- "/var/run/docker.sock:/var/run/docker.sock"
# DANGER: Don't change the following mount within a Docker Compose
# config file, use the `.env` file instead.
- "${HOST_NOPAQUE_DATA_PATH}:${HOST_NOPAQUE_DATA_PATH}"