-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yaml
70 lines (66 loc) · 1.36 KB
/
compose.yaml
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
69
70
name: jobinow
services:
jobinow-db:
image: 'postgres:latest'
container_name: jobinow-db
environment:
- POSTGRES_DB=jobinow
- POSTGRES_PASSWORD=Youcode@2023
- POSTGRES_USER=postgres
- PGDATA=/data/postgres
restart: always
healthcheck:
test: [ "CMD", "pg_isready", "-U", "postgres" ]
interval: 30s
timeout: 10s
retries: 5
ports:
- "5432:5432"
volumes:
- type: volume
source: postgres-db
target: /var/lib/postgresql/data
networks:
- jobinow
jobinow-cache:
image: 'redis:latest'
container_name: jobinow-cache
hostname: redis
healthcheck:
test: [ "CMD", "redis-cli", "ping" ]
interval: 30s
timeout: 10s
retries: 5
ports:
- "6379:6379"
restart: always
networks:
- jobinow
jobinow-api:
container_name: jobinow-api
build:
context: ./
dockerfile: Dockerfile
image: "jobinow"
ports:
- "8085:8084"
depends_on:
jobinow-db:
condition: service_healthy
jobinow-cache:
condition: service_healthy
restart: unless-stopped
networks:
- jobinow
networks:
jobinow:
attachable: true
name: jobinow
driver: bridge
enable_ipv6: true
ipam:
config:
- subnet: 2001:0DB7::/112
volumes:
postgres-db:
driver: local