-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
43 lines (41 loc) · 1019 Bytes
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
version: "3"
networks:
siren_network:
external: false
services:
siren:
image: creatiwity/siren
container_name: siren
restart: unless-stopped
user: "${DOCKER_UID}:${DOCKER_GID}"
ports:
- "3000:3000"
environment:
- RUST_LOG=${RUST_LOG}
- API_KEY=${API_KEY}
- SIRENE_ENV=${SIRENE_ENV}
- DATABASE_URL=${DATABASE_URL}
- TEMP_FOLDER=/app/data/temp
- FILES_FOLDER=/app/data/files
volumes:
- ./docker/data/:/app/data/
depends_on:
- db
networks:
- siren_network
db:
image: postgres:12
container_name: db
restart: unless-stopped
user: "${DOCKER_UID}:${DOCKER_GID}"
environment:
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_DB=${POSTGRES_DB}
- PGUSER=${DOCKER_USER}
volumes:
- ./docker/postgres:/var/lib/postgresql/data
- ./docker/data/:/app/data/:ro
- /etc/passwd:/etc/passwd:ro
networks:
- siren_network