-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathproduction.yml
59 lines (58 loc) · 1.4 KB
/
production.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
---
version: "3.4"
services:
database:
restart: always
image: postgres:12
container_name: herdbook-db
env_file:
- ./.docker/database-variables.env
environment:
- POSTGRES_HOST_AUTH_METHOD=trust
volumes:
- ./postgres-data:/var/lib/postgresql/data
pgadmin:
restart: always
image: dpage/pgadmin4:latest
hostname: pgadmin
volumes:
- ./pgadmin:/var/lib/pgadmin
environment:
- PGADMIN_DEFAULT_EMAIL=UPDATEME
- PGADMIN_DEFAULT_PASSWORD=UPDATEME
- GUNICORN_ACCESS_LOGFILE=/dev/null
main:
image: ghcr.io/nbisweden/herdbook_main:${TAG:?TAG-not-set}
container_name: herdbook-main
env_file:
- ./.docker/database-variables.env
- ./.docker/r-api-variables.env
- ./.docker/main-api-variables.env
ports:
- 80:8080
- 443:8443
- 9090:9090
volumes:
- type: bind
source: ./app
target: /api_src
- type: bind
source: ./config
target: /config
- type: bind
source: ./logs
target: /logs
- type: bind
source: ./cache
target: /var/cache/herdbook
depends_on:
- database
- r-api
restart: always
r-api:
image: ghcr.io/nbisweden/herdbook_r-api:${TAG:?TAG-not-set}
container_name: r-api
env_file:
- ./.docker/database-variables.env
- ./.docker/r-api-variables.env
restart: always