-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
63 lines (59 loc) · 1.36 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
54
55
56
57
58
59
60
61
62
63
version: '3.8'
services:
db:
image: postgres:16
container_name: cafe-db
environment:
POSTGRES_DB: cafe
POSTGRES_USER: cafe
POSTGRES_PASSWORD: cafe
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U cafe"]
interval: 5s
timeout: 5s
retries: 5
registry:
image: registry:2
container_name: cafe-registry
ports:
- "5050:5000"
volumes:
- registry_data:/var/lib/registry
environment:
REGISTRY_STORAGE_DELETE_ENABLED: "true"
DOCKER_REGISTRY_URL: "localhost:5050"
mailserver:
build:
context: ./config/mailserver
dockerfile: Dockerfile
container_name: cafe-mailserver
hostname: mail.cafe.local
environment:
RELAY_HOST: smtp.gmail.com
RELAY_PORT: 587
RELAY_USER: ryosuke.ohori@ulusage.com
RELAY_PASSWORD: nfbt qhrk ccih mbdw
DEBIAN_FRONTEND: noninteractive
DEBUG: "1"
volumes:
- ./config/mailserver/scripts:/usr/local/bin
restart: "no"
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
stop_grace_period: 10s
stop_signal: SIGTERM
tty: true
stdin_open: true
volumes:
postgres_data:
registry_data:
workflow_data:
mailserver_data:
mailserver_config: