-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdocker-compose.all-in-one.yml
More file actions
62 lines (57 loc) · 1.9 KB
/
docker-compose.all-in-one.yml
File metadata and controls
62 lines (57 loc) · 1.9 KB
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
version: "2"
# This compose configuration is set up to run from the repository root folder
services:
db:
image: postgres:11.9
restart: unless-stopped
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB}
TAG2DOMAIN_SCHEMA: ${TAG2DOMAIN_SCHEMA}
TAG2DOMAIN_ENTITY_TABLE: ${TAG2DOMAIN_ENTITY_TABLE}
TAG2DOMAIN_ENTITY_ID_COLUMN: ${TAG2DOMAIN_ENTITY_ID_COLUMN}
TAG2DOMAIN_ENTITY_NAME_COLUMN: ${TAG2DOMAIN_ENTITY_NAME_COLUMN}
# uncomment to make DB accessible from outside the docker network on port 5432
#ports:
# - "5432:5432"
volumes:
# Basic tag2domain DB configuration scripts
- ./db/db_master_script.sh:/docker-entrypoint-initdb.d/00-db_master_script.sh:ro
- ./db/00-tag2domain-db-init:/docker-entrypoint-initdb.d/00-tag2domain-db-init:ro
# all-in-one-demo: mock registry + glue tables to work with tag2domain + mock data
- ./docker/all-in-one-demo/db:/docker-entrypoint-initdb.d/50-all-in-one-demo:ro
networks:
- backend
api:
build:
context: .
dockerfile: ./tag2domain_api/Dockerfile.msm2tag
restart: unless-stopped
environment:
LOG_LEVEL: DEBUG
MODULE_NAME: tag2domain_api.app.main
PORT: ${TAG2DOMAIN_API_PORT}
DBHOST: db
DBUSER: ${POSTGRES_USER}
DBPASSWORD: ${POSTGRES_PASSWORD}
DBSSLMODE: ${POSTGRES_SSLMODE}
DBTAG2DOMAIN_SCHEMA: ${TAG2DOMAIN_SCHEMA}
DB: ${POSTGRES_DB}
TIMEOUT: 300
GRACEFUL_TIMEOUT: 300
ENABLE_MSM2TAG: "True"
MSM2TAG_DB_CONFIG: /app/intxn_tables.cfg
MAX_WORKERS: 1
ports:
- "${TAG2DOMAIN_API_PORT}:${TAG2DOMAIN_API_PORT}"
depends_on:
- db
networks:
- frontend
- backend
volumes:
- ./docker/all-in-one-demo/tag2domain_intxn_tables.cfg:/app/intxn_tables.cfg
networks:
backend:
frontend: