-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
70 lines (65 loc) · 1.31 KB
/
compose.yaml
File metadata and controls
70 lines (65 loc) · 1.31 KB
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: aftas
services:
aftas-db:
image: 'postgres:latest'
container_name: database
environment:
- POSTGRES_DB=${APP_DB_NAME}
- POSTGRES_PASSWORD=${APP_DB_PASS}
- POSTGRES_USER=${APP_DB_USER}
- 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:
- aftas
aftas-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:
- aftas
app:
container_name: aftas
build:
context: .
dockerfile: Dockerfile
ports:
- "8083:8084"
depends_on:
aftas-db:
condition: service_healthy
aftas-cache:
condition: service_healthy
restart: no
networks:
- aftas
networks:
aftas:
attachable: true
name: aftas
driver: bridge
enable_ipv6: true
ipam:
config:
- subnet: 2001:0DB8::/112
volumes:
postgres-db:
driver: local