-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
93 lines (88 loc) · 2.21 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
version: "3.8"
services:
back:
build:
context: "."
dockerfile: Dockerfile.all
target: back
env_file:
- .env
depends_on:
postgres:
condition: service_healthy
# healthcheck:
# test:
# [
# "CMD",
# "curl",
# "--fail",
# "--output /dev/null",
# "http://localhost:3000/api/", NEED DYNAMIC PORT FOR HEALTHCHECK
# ]
# interval: 10s
# timeout: 5s
# retries: 6
# start_period: 10s
restart: unless-stopped
front:
build:
context: "."
dockerfile: Dockerfile.all
target: front
env_file:
- .env
pipelines:
build:
context: "."
dockerfile: Dockerfile.all
target: pipelines
env_file:
- .env
environment:
- LOGDIR=/var/lib/pipelines/log
- ESTABLISHMENT_BACKFILL_SCHEDULE
- ESTABLISHMENT_UPDATE_FROM_SIRENE
volumes:
- ./docker-data/pipelines:/var/lib/pipelines
- ./.env:/app/back/.env
nginx:
restart: unless-stopped
depends_on:
back:
# condition: service_healthy NEED BACK DYNAMIC PORT FOR HEALTHCHECK
condition: service_started
front:
condition: service_started
build:
context: ./nginx
dockerfile: Dockerfile.nginx
args:
- ENV_TYPE=${ENV_TYPE:-develop}
- DOMAIN=${DOMAIN:-domain.tld}
- LETSENCRYPT_MAIL=${LETSENCRYPT_MAIL:[email protected]}
- ADMIN_ALLOWED_IP=${ADMIN_ALLOWED_IP:-}
ports:
- "${EXPOSED_PORT:-80}:80"
- "${HTTPS_PORT:-443}:443"
volumes:
- ./nginx/etc/letsencrypt:/etc/letsencrypt
- ./nginx/etc/nginx/conf.d/:/etc/nginx/conf.d/
postgres:
image: postgis/postgis:13-master
shm_size: 256m
environment:
POSTGRES_LOG_STATEMENT: all
POSTGRES_DB: immersion-db
POSTGRES_USER: immersion
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-pg_password}
healthcheck:
test: ["CMD-SHELL", "pg_isready -U immersion -d immersion-db"]
interval: 10s
timeout: 5s
retries: 5
volumes:
- ./docker-data/postgresql:/var/lib/postgresql/data
ports:
- "${PG_EXPOSED_PORT:-5432}:5432"
adminer:
image: adminer