-
Notifications
You must be signed in to change notification settings - Fork 44
/
docker-compose.yml
68 lines (63 loc) · 1.47 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
64
65
66
67
68
version: '2.1'
services:
auth-proxy:
image: mwangxx/auth-proxy:latest
container_name: auth-proxy
ports:
- "80:80"
- "443:443"
depends_on:
- frontend
frontend:
image: mwangxx/bulletjournal-frontend:latest
container_name: react_app
ports:
- "3000:3000"
depends_on:
- controller
controller:
image: mwangxx/bulletjournal-backend:latest
container_name: springboot_app
ports:
- "8080:8080"
environment:
spring_profiles_active: dev
volumes:
- $HOME/docker/volumes/log:/var/log
depends_on:
database:
condition: service_healthy
daemon:
image: zywangzy/bulletjournal-daemon:latest
container_name: daemon_app
ports:
- "50051:50051"
depends_on:
cache:
condition: service_started
database:
condition: service_healthy
cache:
image: mwangxx/redis:5.0.8
container_name: cache
ports:
- "127.0.0.1:6379:6379"
database:
image: mwangxx/postgres:12.2-2
container_name: db
hostname: postgres
ports:
- "5432:5432"
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: docker
POSTGRES_DB: postgres
volumes:
- $HOME/docker/volumes/postgres:/var/lib/postgresql/data
- $HOME/docker/volumes/db_backup:/var/db_backup
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 5s
retries: 5