generated from serokell/metatemplates
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
74 lines (68 loc) · 1.96 KB
/
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# SPDX-FileCopyrightText: 2021 Serokell <https://serokell.io>
#
# SPDX-License-Identifier: AGPL-3.0-or-later
version: '3.7'
# All backend configuration may be read from `config.yaml`.
# `env_file` and `environment` are provided just as an example.
# `environment` is necessary to properly propagate all relevant
# env vars to running container, e. g. if we pass `--env-file`
# via command line.
services:
backend:
image: "ghcr.io/serokell/edna-backend:latest"
restart: always
depends_on:
- postgres
volumes:
- ./config.yaml:/config.yaml
networks:
- edna-network
ports:
- 9000:9000
command: --config /config.yaml
env_file:
- .env
environment:
- POSTGRES_HOST=${POSTGRES_HOST}
- POSTGRES_PORT=${POSTGRES_PORT}
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_DB=${POSTGRES_DB}
- EDNA_API_LISTEN_ADDR=${EDNA_API_LISTEN_ADDR}
- EDNA_API_SERVE_DOCS=${EDNA_API_SERVE_DOCS}
- EDNA_DB_MAX_CONNECTIONS=${EDNA_DB_MAX_CONNECTIONS}
- EDNA_DB_INITIALISATION_MODE=${EDNA_DB_INITIALISATION_MODE}
- EDNA_DB_INITIALISATION_INIT_SCRIPT=${EDNA_DB_INITIALISATION_INIT_SCRIPT}
- EDNA_DB_DEBUG=${EDNA_DB_DEBUG}
- EDNA_LOGGING=${EDNA_LOGGING}
- EDNA_MDE_HOST=${EDNA_MDE_HOST}
frontend:
image: "ghcr.io/serokell/edna-frontend:latest"
restart: always
depends_on:
- backend
ports:
- ${FRONTEND_PORT}:80
networks:
- edna-network
postgres:
image: postgres
container_name: postgres
restart: always
ports:
- ${POSTGRES_PORT}:5432
volumes:
- edna-db-data:/var/lib/postgresql/data/
networks:
- edna-network
env_file:
- .env
environment:
- POSTGRES_HOST=${POSTGRES_HOST}
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_DB=${POSTGRES_DB}
networks:
edna-network: { }
volumes:
edna-db-data: