forked from b310-digital/teammapper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
57 lines (54 loc) · 2.13 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
version: "3.8"
services:
app:
build:
context: .
dockerfile: Dockerfile
target: development
tty: true
stdin_open: true
environment:
MODE: DEV
BINDING: "0.0.0.0"
POSTGRES_DATABASE: ${POSTGRES_DB:-teammapper-backend-dev}
POSTGRES_HOST: ${POSTGRES_HOST:-postgres}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-teammapper-password}
POSTGRES_PORT: ${POSTGRES_PORT:-5432}
POSTGRES_USER: ${POSTGRES_USER:-teammapper-user}
POSTGRES_SSL: ${POSTGRES_SSL:-false}
POSTGRES_QUERY_TIMEOUT: ${POSTGRES_QUERY_TIMEOUT:-100000}
POSTGRES_STATEMENT_TIMEOUT: ${POSTGRES_STATEMENT_TIMEOUT:-100000}
POSTGRES_TEST_DATABASE: ${DOCKER_COMPOSE_APP_ENV_POSTGRES_TEST_DATABASE:-teammapper-backend-test}
POSTGRES_TEST_HOST: ${DOCKER_COMPOSE_APP_ENV_POSTGRES_HOST:-postgres}
POSTGRES_TEST_PASSWORD: ${DOCKER_COMPOSE_APP_ENV_POSTGRES_PASSWORD:-teammapper-password}
POSTGRES_TEST_PORT: ${DOCKER_COMPOSE_APP_ENV_POSTGRES_PORT:-5432}
POSTGRES_TEST_USER: ${DOCKER_COMPOSE_APP_ENV_POSTGRES_USER:-teammapper-user}
DELETE_AFTER_DAYS: ${DELETE_AFTER_DAYS:-30}
ports:
- "${APP_FRONTEND_PORT:-4200}:4200"
- "${APP_BACKTEND_PORT:-3000}:3000"
# karma server
- 9876:9876
volumes:
- .:/home/node/app
- app_backend_node_modules:/home/node/app/teammapper-backend/node_modules
- app_frontend_node_modules:/home/node/app/teammapper-frontend/node_modules
depends_on:
- postgres
postgres:
image: postgres:15-alpine
environment:
PGDATA: /var/lib/postgresql/data/pgdata
POSTGRES_DB: ${POSTGRES_DB:-teammapper-backend-dev}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-teammapper-password}
POSTGRES_USER: ${POSTGRES_USER:-teammapper-user}
# Exposing the port is not needed unless you want to access this database instance from the host.
# Be careful when other postgres docker container are running on the same port
ports:
- "${POSTGRES_PORT:-5432}:5432"
volumes:
- postgres_data:/var/lib/postgresql/data/pgdata
volumes:
postgres_data:
app_backend_node_modules:
app_frontend_node_modules: