-
Notifications
You must be signed in to change notification settings - Fork 40
/
docker-compose.yml
53 lines (49 loc) · 1.17 KB
/
docker-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
44
45
46
47
48
49
50
51
52
53
services:
ui:
image: ghcr.io/lecca-digital/lecca-io/ui:main
container_name: lecca-io-ui
restart: unless-stopped
ports:
- '5173:80'
env_file:
- .env
server:
image: ghcr.io/lecca-digital/lecca-io/server:main
container_name: lecca-io-server
restart: unless-stopped
ports:
- '9094:9094'
env_file:
- .env
networks:
- lecca-io-network
depends_on:
postgres:
condition: service_healthy
environment:
DATABASE_URL: postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@postgres:${POSTGRES_PORT}/${POSTGRES_DB}
postgres:
container_name: lecca-io-db
image: postgres:17
restart: unless-stopped
ports:
- '5432:5432'
env_file:
- .env
environment:
POSTGRES_DB: ${POSTGRES_DB}
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
volumes:
- postgres_data:/var/lib/postgresql/data
networks:
- lecca-io-network
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}']
interval: 5s
timeout: 5s
retries: 5
networks:
lecca-io-network:
volumes:
postgres_data: