-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathcompose.yaml
More file actions
43 lines (39 loc) · 1.02 KB
/
compose.yaml
File metadata and controls
43 lines (39 loc) · 1.02 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
services:
postgres-database:
image: 'postgres:15'
container_name: postgres-database
environment:
- POSTGRES_DB=${POSTGRES_DB}
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
volumes:
- db-data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U acmsecy -d acm"]
interval: 5s
timeout: 5s
retries: 5
networks:
- acm-network
backend:
image : 6791042/seed-acm-backend:latest
container_name: acm-backend
environment:
- POSTGRESQL_DB_URL=jdbc:postgresql://postgres-database:5432/${POSTGRES_DB}
- POSTGRESQL_DB_USER=${POSTGRES_USER}
- POSTGRESQL_DB_PASSWORD=${POSTGRES_PASSWORD}
- SMTP_EMAIL=${SMTP_EMAIL}
- SMTP_PASSWORD=${SMTP_PASSWORD}
ports:
- "8080:8080"
depends_on:
postgres-database:
condition: service_healthy
restart: unless-stopped
networks:
- acm-network
volumes:
db-data:
networks:
acm-network:
driver: bridge