-
Notifications
You must be signed in to change notification settings - Fork 21
/
docker-compose.yml
46 lines (40 loc) · 1.09 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
version: '3.3'
services:
postgres:
image: postgres:14.1-alpine
restart: always
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
logging:
options:
max-size: 10m
max-file: "3"
ports: # database port is exposed in development, but closed off in production
- "5432:5432"
volumes:
- "./build/postgres:/var/lib/postgresql/data"
schedge:
platform: linux/amd64
build:
context: .
dockerfile: ./src/build/Dockerfile
restart: "no"
environment:
- DB_USERNAME=postgres
- DB_PASSWORD=postgres
- SCHEDGE_ADMIN_PASSWORD=schedge:admin
- JDBC_URL=jdbc:postgresql://postgres/postgres
ports:
- "4358:4358"
volumes:
- "./:/home/user"
labels:
- "com.centurylinklabs.watchtower.enable=true"
- "com.centurylinklabs.watchtower.stop-signal=SIGKILL"
watchtower:
image: containrrr/watchtower:1.4.0
volumes:
- /var/run/docker.sock:/var/run/docker.sock
command: --interval 1 --cleanup --label-enable --no-pull
restart: unless-stopped