-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathdocker-compose.prod.yml
More file actions
66 lines (60 loc) · 1.32 KB
/
docker-compose.prod.yml
File metadata and controls
66 lines (60 loc) · 1.32 KB
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
# SPDX-FileCopyrightText: 2021-2025 DINUM <floss@numerique.gouv.fr>
# SPDX-FileCopyrightText: 2024-2025 Université Grenoble Alpes
# SPDX-License-Identifier: MIT
services:
api:
depends_on:
- postgres
build:
context: "."
dockerfile: Dockerfile.api
env_file: .env
restart: unless-stopped
command: pnpm start
update:
depends_on:
- api
- postgres
build:
context: "."
dockerfile: Dockerfile.api
env_file: .env
restart: always
# runs every 4 hours (240 minutes)
command: pnpm update-then-wait 240
web:
depends_on:
- api
build:
context: "."
dockerfile: Dockerfile.web
restart: unless-stopped
env_file: .env
nginx:
image: nginx:alpine
ports:
- "8080:80"
volumes:
- ./nginx/:/etc/nginx/conf.d/
depends_on:
- api
- web
restart: unless-stopped
postgres:
image: postgres:16
shm_size: 256m
environment:
POSTGRES_LOG_STATEMENTS: all
POSTGRES_DB: ${POSTGRES_DB}
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
volumes:
- ./docker-data:/var/lib/postgresql/data
ports:
- "127.0.0.1:5441:5432"
restart: unless-stopped
adminer:
image: adminer
ports:
- "8081:8080"
restart: unless-stopped