-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yml
43 lines (39 loc) · 868 Bytes
/
compose.yml
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:
actix-db:
container_name: actix-db
image: postgres:16-alpine
env_file:
- .env
environment:
POSTGRES_USER: ${DB_USER}
POSTGRES_PASSWORD: ${DB_PASS}
POSTGRES_DB: ${DB_NAME}
volumes:
- ./src/main/storage/migrations:/docker-entrypoint-initdb.d/
restart: unless-stopped
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U ${DB_USER} -d ${DB_NAME} || exit 1" ]
interval: 10s
retries: 10
start_period: 60s
timeout: 10s
networks:
- dev_nk
ports:
- "5433:5432"
actix-app:
container_name: actix-app
restart: unless-stopped
build:
context: .
dockerfile: Dockerfile
depends_on:
actix-db:
condition: service_healthy
networks:
- dev_nk
ports:
- "8080:8080"
networks:
dev_nk:
driver: bridge