-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
62 lines (58 loc) · 1.35 KB
/
docker-compose.yml
File metadata and controls
62 lines (58 loc) · 1.35 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
services:
web:
build: .
restart: unless-stopped
expose:
- "80"
depends_on:
bcra_db:
condition: service_healthy
environment:
DATABASE_URL_FILE: /run/secrets/database_url
SECRET_TOKEN_FILE: /run/secrets/secret_token
VIRTUAL_HOST: bcra.cloudlibrasoft.com
LETSENCRYPT_HOST: bcra.cloudlibrasoft.com
LETSENCRYPT_EMAIL: levislibra@libra-soft.com
VIRTUAL_PORT: "80"
secrets:
- database_url
- secret_token
mem_limit: 2g
mem_reservation: 2g
networks:
- backend
- proxy
bcra_db:
image: postgres:18.4
restart: unless-stopped
environment:
POSTGRES_USER: user_bcra
POSTGRES_DB: bcra_deudores
POSTGRES_PASSWORD_FILE: /run/secrets/postgres_password
PGDATA: /var/lib/postgresql/18/docker
secrets:
- postgres_password
volumes:
- postgres_data:/var/lib/postgresql
healthcheck:
test: ["CMD-SHELL", "pg_isready -U user_bcra -d bcra_deudores"]
interval: 10s
timeout: 5s
retries: 5
start_period: 20s
networks:
- backend
secrets:
database_url:
file: ./secrets/database_url
secret_token:
file: ./secrets/secret_token
postgres_password:
file: ./secrets/postgres_password
volumes:
postgres_data:
networks:
backend:
proxy:
external: true
name: proxy