-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
59 lines (55 loc) · 1.2 KB
/
compose.yaml
File metadata and controls
59 lines (55 loc) · 1.2 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
services:
postgres:
image: postgres:16-alpine
container_name: postgres_db
restart: unless-stopped
environment:
POSTGRES_USER_FILE: /run/secrets/postgres_user
POSTGRES_PASSWORD_FILE: /run/secrets/postgres_password
POSTGRES_DB_FILE: /run/secrets/postgres_db
TZ: Europe/Paris
LANG: fr_FR.UTF-8
secrets:
- postgres_user
- postgres_password
- postgres_db
ports:
- '5432:5432'
volumes:
- postgres_data:/var/lib/postgresql/data
backend:
build:
context: .
dockerfile: Dockerfile
target: backend
container_name: back_actumatic
restart: unless-stopped
depends_on:
- postgres
secrets:
- database_url
ports:
- '3000:3000'
frontend:
build:
context: .
dockerfile: Dockerfile
target: frontend
container_name: front_actumatic
restart: unless-stopped
depends_on:
- backend
ports:
- '80:80'
volumes:
postgres_data:
driver: local
secrets:
postgres_user:
file: secrets/postgres_user
postgres_password:
file: secrets/postgres_password
postgres_db:
file: secrets/postgres_db
database_url:
file: secrets/database_url