-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yml
62 lines (59 loc) · 1.41 KB
/
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
services:
web:
image: node:20
container_name: node_server
depends_on:
- db
restart: on-failure:3
ports:
- "2648:2648"
volumes:
- ./:/app
working_dir: /app
command: npm run start:server
environment:
PORT: 2648
DATABASE_URL: "postgresql://dev:dev_password@postgres_db:5432/principale"
user: "${UID}:${GID}"
stop_grace_period: 2s
tooling:
image: node:20
container_name: tooling
depends_on:
- db
volumes:
- ./:/app
working_dir: /app
command: sleep 365d
environment:
DATABASE_URL: "postgresql://dev:dev_password@postgres_db:5432/principale"
user: "${UID}:${GID}"
stop_grace_period: 1s
db:
image: postgres:15.7
container_name: postgres_db
restart: always
environment:
POSTGRES_USER: dev
POSTGRES_PASSWORD: dev_password
POSTGRES_DB: principale
hostname: localhost
ports:
- "5432:5432"
volumes:
- ./pgdata:/var/lib/postgresql/data
- ./backups:/var/lib/pitchou/backups
pgadmin:
image: dpage/pgadmin4
container_name: pgadmin
depends_on:
- db
ports:
- "5050:80"
environment:
PGADMIN_DEFAULT_EMAIL: [email protected]
PGADMIN_DEFAULT_PASSWORD: root
PGADMIN_DISABLE_POSTFIX: "1"
PGADMIN_CONFIG_SERVER_HEARTBEAT_TIMEOUT: 3600 # secondes = une heure
restart: unless-stopped
stop_grace_period: 2s