-
Notifications
You must be signed in to change notification settings - Fork 10
/
docker-compose.local.yml
147 lines (139 loc) · 3.97 KB
/
docker-compose.local.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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
version: "3.4"
volumes:
postgres-data:
metabase-data:
minio_data:
services:
minio:
image: minio/minio
volumes:
- minio_data:/data
ports:
- "9000:9000"
- "9001:9001" # Port pour l'interface de gestion MinIO Console
environment:
MINIO_ROOT_USER: minioadmin
MINIO_ROOT_PASSWORD: minioadmin
MINIO_REGION: xxx
command: server /data --console-address ":9001"
postgres:
image: postgis/postgis:15-3.4-alpine
container_name: domifa-postgres
shm_size: 2g
volumes:
- postgres-data:/var/lib/postgresql/data/pgdata
- ./_scripts/docker/postgres-restore-dump.docker-entrypoint.sh:/docker-entrypoint-initdb.d/postgres-restore-dump.docker-entrypoint.sh
- ./_scripts:/app/_scripts
ports:
- "5432:5432"
environment:
TZ: "Europe/Paris"
NODE_ENV: development
PGDATA: /var/lib/postgresql/data/pgdata
POSTGRES_DB: ${POSTGRES_DATABASE}
POSTGRES_USER: ${POSTGRES_USERNAME}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_SSL: "false"
env_file:
- ./.env
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USERNAME}"]
interval: 10s
timeout: 5s
retries: 5
# backend:
# container_name: domifa-backend
# hostname: domifa-backend
# build:
# context: _scripts/dev
# dockerfile: local-node.dockerfile
# command: tail -f /dev/null
# working_dir: /app/packages/backend
# volumes:
# - $APP_DIR:/app:delegated
# - $HOME/.ssh:/home/node/.ssh:ro
# - $HOME/.gitconfig:/home/node/.gitconfig:ro
# - $HOME/.gitignore:/home/node/.gitignore:ro
# - $HOME/.npm:/home/node/.npm:delegated
# ports:
# - 3000:3000
# env_file:
# - ./.env
# environment:
# TZ: Europe/Paris
# depends_on:
# - "postgres"
# frontend:
# container_name: domifa-frontend
# hostname: domifa-frontend
# build:
# context: _scripts/dev
# dockerfile: local-node.dockerfile
# command: tail -f /dev/null
# working_dir: /app/packages/frontend
# volumes:
# - $APP_DIR:/app:delegated
# - $HOME/.ssh:/home/node/.ssh:ro
# - $HOME/.gitconfig:/home/node/.gitconfig:ro
# - $HOME/.gitignore:/home/node/.gitignore:ro
# - $HOME/.npm:/home/node/.npm:delegated
# ports:
# - 4200:4200
# env_file:
# - ./.env
# environment:
# TZ: Europe/Paris
# portail-usagers:
# container_name: domifa-portail-usagers
# hostname: domifa-portail-usagers
# build:
# context: _scripts/dev
# dockerfile: local-node.dockerfile
# command: tail -f /dev/null
# working_dir: /app/packages/portail-usagers
# volumes:
# - $APP_DIR:/app:delegated
# - $HOME/.ssh:/home/node/.ssh:ro
# - $HOME/.gitconfig:/home/node/.gitconfig:ro
# - $HOME/.gitignore:/home/node/.gitignore:ro
# - $HOME/.npm:/home/node/.npm:delegated
# ports:
# - 4201:4201
# env_file:
# - ./.env
# environment:
# TZ: Europe/Paris
# portail-admins:
# container_name: domifa-portail-admins
# hostname: domifa-portail-admins
# build:
# context: _scripts/dev
# dockerfile: local-node.dockerfile
# command: tail -f /dev/null
# working_dir: /app/packages/portail-admins
# volumes:
# - $APP_DIR:/app:delegated
# - $HOME/.ssh:/home/node/.ssh:ro
# - $HOME/.gitconfig:/home/node/.gitconfig:ro
# - $HOME/.gitignore:/home/node/.gitignore:ro
# - $HOME/.npm:/home/node/.npm:delegated
# ports:
# - 4202:4202
# env_file:
# - ./.env
# environment:
# TZ: Europe/Paris
metabase-app:
container_name: domifa-metabase
image: metabase/metabase:latest
restart: always
ports:
- 3002:3000
volumes:
# declare your mount volume /host/dir:/container/dir
- metabase-data:/metabase-data
environment:
MB_DB_FILE: /metabase-data/metabase.db
MB_SITE_LOCALE: fr
depends_on:
- postgres