-
-
Notifications
You must be signed in to change notification settings - Fork 105
/
docker-compose.yml
42 lines (40 loc) · 997 Bytes
/
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
version: '3.3'
services:
postgres:
image: postgres:alpine
restart: on-failure
environment:
- POSTGRES_DB=passwall
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=password
ports:
- 5432:5432
volumes:
- $HOME/docker/volumes/passwall-postgres:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 5
start_period: 5s
passwall-server:
container_name: passwall-server
image: passwall/passwall-server:latest
restart: always
environment:
- PW_DB_NAME=passwall
- PW_DB_USERNAME=postgres
- PW_DB_PASSWORD=password
- PW_DB_HOST=postgres
- PW_DB_PORT=5432
- PW_DB_LOG_MODE=false
- PW_DB_SSL_MODE=disable
build:
context: .
depends_on:
postgres:
condition: service_healthy
ports:
- 3625:3625
volumes:
- $HOME/docker/volumes/passwall-server:/app/config