-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose.yml
71 lines (71 loc) · 1.71 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
69
70
71
version: '2'
services:
helper:
image: ubuntu:latest
depends_on:
authentication-service:
condition: service_healthy
permission-service:
condition: service_healthy
authentication-service:
depends_on:
db:
condition: service_healthy
entrypoint: ["/mnt/vol2/entrypoint.sh"]
environment:
- ASDF=10
- DB_URL=postgresql://db:5432
- HENK
image: ubuntu:latest
ports:
- "8080"
working_dir: /app/test
volumes:
- './docker-compose.yml:/mnt/vol1/docker-compose.yml:ro'
- './entrypoint.sh:/mnt/vol2/entrypoint.sh:ro'
generic-service:
image: ubuntu:latest
environment:
ENVVAR_EXTENDS: test
ports:
- 8236:8234
permission-service:
entrypoint: ["/mnt/vol1/entrypoint.sh"]
image: ubuntu:latest
extends:
service: generic-service
environment:
ENVVAR_STR: str
ENVVAR_INT: 23
ENVVAR_FLOAT1: 23.15
ENVVAR_FLOAT2: 2312934891234981234.15123412384718237481723412341234
ENVVAR_NULL:
extends:
service: generic-service
healthcheck:
disable: true
image: ubuntu:latest
ports:
- "8080"
- 8081
- 8082:8082
- 8236:8234
working_dir: /app/test
volumes:
- './entrypoint.sh:/mnt/vol1/entrypoint.sh:ro'
db:
image: postgres:latest
healthcheck:
test:
- CMD-SHELL
# We have to convert non-zero exit codes to one as per https://docs.docker.com/engine/reference/builder/#healthcheck
- 'pg_isready -U postgres || exit 1'
interval: 10s
timeout: 5s
retries: 5
user: root
x-kube-compose:
cluster_image_storage:
type: docker_registry
host: localhost:5000
volume_init_base_image: ubuntu:latest