forked from naim94a/lumen
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
31 lines (30 loc) · 1.02 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
version: '3.7'
volumes:
postgres_data:
services:
db:
image: postgres:13-alpine
container_name: lumina-postgres
environment:
POSTGRES_USER: lumina
POSTGRES_DB: lumina
POSTGRES_PASSWORD: 1
expose:
- "5432"
volumes:
- postgres_data:/var/lib/postgresql
- ./schema.sql:/docker-entrypoint-initdb.d/schema.sql:ro
lumina:
build: .
command: sh -c 'while ! nc -vv -z db 5432; do sleep 1; done; /lumen/docker-init.sh'
depends_on:
- db
ports:
- 1234:1234
- 8082:8082
environment:
PKCSPASSWD: $PKCSPASSWD
volumes:
- ./dockershare:/dockershare
links:
- db