-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcompose.yml
More file actions
37 lines (34 loc) · 722 Bytes
/
Copy pathcompose.yml
File metadata and controls
37 lines (34 loc) · 722 Bytes
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
version: '3.8'
services:
postgres:
image: postgres:17
container_name: postgres_container
environment:
POSTGRES_USER: root
POSTGRES_PASSWORD: toor
POSTGRES_DB: db
ports:
- "127.0.0.1:5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
restart: always
backend:
build: .
container_name: cipherdrop
depends_on:
- postgres
environment:
DATABASE_URL: postgres://root:toor@postgres/db
ports:
- "8080:8080"
command: >
sh -c "
until diesel migration run; do
echo 'Waiting for database migration...'
done &&
./backend
"
restart: always
volumes:
postgres_data:
driver: local