-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
71 lines (66 loc) · 2.07 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
version: '3.7'
x-dbconfig_planner_env: &dbconfig_planner_env
DB_USER: &planner_dbuser planner
DB_DATABASE: &planner_dbname planner
DB_PASSWORD: &planner_dbpass plannerpwd # pragma: allowlist secret
DB_PORT: &planner_dbport 5432
DB_HOST: &planner_dbhost planner-db
services:
# planner-db:
# container_name: planner-db
# image: postgres:14
# environment:
# POSTGRES_USER: *planner_dbuser
# POSTGRES_DB: *planner_dbname
# POSTGRES_PASSWORD: *planner_dbpass # pragma: allowlist secret
# LC_COLLATE: "C.UTF-8"
# ports:
# - target: *planner_dbport
# published: *planner_dbport
# protocol: tcp
# healthcheck:
# test: "pg_isready --dbname=$$POSTGRES_DB --username=$$POSTGRES_USER -q"
# interval: 5s
# timeout: 5s
# retries: 3
# start_period: 5s
# volumes:
# - './volumes/planner_db_data:/var/lib/postgresql/data'
# - './api/database/initial-database.sql:/docker-entrypoint-initdb.d/initial-database.sql'
planner-api:
container_name: planner-api
image: "heusalagroup/planner-api:dev"
restart: unless-stopped
build: ./api
environment:
AZURE_POSTGRESQL_HOST: *planner_dbhost
AZURE_POSTGRESQL_USER: *planner_dbuser
AZURE_POSTGRESQL_DATABASE: *planner_dbname
AZURE_POSTGRESQL_PORT: *planner_dbport
# AZURE_POSTGRESQL_SSL: *planner_ssl
AZURE_POSTGRESQL_PASSWORD: *planner_dbpass # pragma: allowlist secret
BACKEND_LOG_LEVEL: DEBUG
BACKEND_URL: "http://0.0.0.0:3001"
PUBLIC_URL: "http://localhost:3000"
PUBLIC_API_URL: "http://localhost:3000/api"
volumes:
- './assets:/assets'
env_file:
- "./api/.env"
ports:
- "3001:3001"
# depends_on:
# - planner-db
planner-frontend-image:
container_name: planner-frontend-image
restart: unless-stopped
image: "heusalagroup/planner-frontend:dev"
build:
context: "./frontend"
args:
DEFAULT_PUBLIC_URL: "http://localhost:3000"
ports:
- "8080:8080"
environment:
NGINX_PORT: 8080
NGINX_API_URL: "http://heusalagroup-backend:3500"