nopaque/docker-compose.yml

50 lines
982 B
YAML
Raw Normal View History

2020-09-16 12:13:06 +00:00
version: "3.5"
volumes:
redis-trash1:
2020-04-08 15:21:42 +00:00
services:
2019-09-06 11:42:47 +00:00
web:
2020-06-05 12:42:04 +00:00
build:
args:
GID: ${GID}
UID: ${UID}
2020-06-05 12:42:04 +00:00
context: ./web
depends_on:
- db
- redis
env_file: .env
2020-06-05 12:42:04 +00:00
image: nopaque/web
2020-09-16 12:21:41 +00:00
restart: unless-stopped
2019-09-05 12:43:36 +00:00
volumes:
2020-03-30 15:27:54 +00:00
- "./logs:/home/nopaque/logs"
- "${NOPAQUE_STORAGE}:${NOPAQUE_STORAGE}"
2019-09-06 11:42:47 +00:00
daemon:
2020-06-05 12:42:04 +00:00
build:
args:
DOCKER_GID: ${DOCKER_GID}
GID: ${GID}
UID: ${UID}
2020-06-05 12:42:04 +00:00
context: ./daemon
depends_on:
- db
- web
env_file: .env
2020-06-05 12:42:04 +00:00
image: nopaque/daemon
2020-09-16 12:21:41 +00:00
restart: unless-stopped
2019-09-05 12:43:36 +00:00
volumes:
2020-06-05 12:42:04 +00:00
- "/var/run/docker.sock:/var/run/docker.sock"
2020-03-30 15:27:54 +00:00
- "./logs:/home/nopaqued/logs"
- "${NOPAQUE_STORAGE}:${NOPAQUE_STORAGE}"
2019-09-06 11:42:47 +00:00
db:
env_file: .env
image: postgres:11
2020-09-16 12:21:41 +00:00
restart: unless-stopped
2019-09-06 09:38:35 +00:00
volumes:
2020-04-09 06:18:04 +00:00
- "/srv/nopaque/db:/var/lib/postgresql/data"
2019-09-06 11:42:47 +00:00
redis:
2020-07-30 12:17:51 +00:00
image: redis:6
2020-09-16 12:21:41 +00:00
restart: unless-stopped
volumes:
- "redis-trash1:/data"