Skip to content

Commit 52add6e

Browse files
Add db to compose.aws.yml file
1 parent 1e551ea commit 52add6e

File tree

1 file changed

+25
-1
lines changed

1 file changed

+25
-1
lines changed

compose.aws.yml

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,28 @@ services:
4747
- "traefik.http.routers.client.tls.certresolver=letsencrypt"
4848
- "traefik.http.middlewares.client-compress.compress=true"
4949
- "traefik.http.routers.client.middlewares=client-compress"
50-
- "traefik.http.routers.client.priority=1"
50+
- "traefik.http.routers.client.priority=1"
51+
52+
db:
53+
image: postgres:16.2-bullseye
54+
restart: unless-stopped
55+
environment:
56+
POSTGRES_USER: postgres
57+
POSTGRES_PASSWORD: postgres
58+
healthcheck:
59+
test: [ "CMD-SHELL", "sh -c 'pg_isready -U postgres -d postgres'" ]
60+
interval: 10s
61+
timeout: 3s
62+
retries: 3
63+
ports:
64+
- "5432:5432"
65+
volumes:
66+
- db-data:/var/lib/postgresql/data
67+
networks:
68+
- server
69+
70+
volumes:
71+
db-data:
72+
73+
networks:
74+
server:

0 commit comments

Comments
 (0)