-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.dev.yaml
102 lines (102 loc) · 2.2 KB
/
compose.dev.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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
name: sut-se-price-map
networks:
default:
name: sut-se-price-map_default
services:
db:
build:
context: db
dockerfile: postgres.Dockerfile
environment:
POSTGRES_DB: docker
POSTGRES_PASSWORD: root
POSTGRES_USER: docker
healthcheck:
interval: 1s
retries: 10
test:
- CMD-SHELL
- pg_isready -d $$POSTGRES_DB -U $$POSTGRES_USER
timeout: 5s
networks:
default: null
ports:
- mode: ingress
protocol: tcp
published: "5432"
target: 5432
restart: always
volumes:
- source: db-data
target: /var/lib/postgresql/data
type: volume
volume: {}
pgadmin:
build:
context: db
dockerfile: pgadmin.Dockerfile
depends_on:
db:
condition: service_healthy
required: true
restart: true
environment:
PGADMIN_CONFIG_MASTER_PASSWORD_REQUIRED: "False"
PGADMIN_CONFIG_SERVER_MODE: "False"
PGADMIN_DEFAULT_EMAIL: pgadmin@pgadmin.com
PGADMIN_DEFAULT_PASSWORD: root
networks:
default: null
ports:
- mode: ingress
protocol: tcp
published: "5050"
target: 80
restart: always
volumes:
- source: pgadmin
target: /root/.pgadmin
type: volume
volume: {}
swagger:
environment:
SWAGGER_FILE: /tmp/openapi.json
image: swaggerapi/swagger-editor
networks:
default: null
ports:
- mode: ingress
protocol: tcp
published: "6060"
target: 8080
volumes:
- source: ./docs/openapi.yaml
target: /tmp/openapi.yaml
type: bind
web:
build:
context: .
dockerfile: Dockerfile
depends_on:
db:
condition: service_healthy
required: true
restart: true
environment:
DATABASE_HOST: db
DATABASE_NAME: docker
DATABASE_PASSWORD: root
DATABASE_PORT: 5432
DATABASE_USERNAME: docker
networks:
default: null
ports:
- mode: ingress
protocol: tcp
published: "8080"
target: 6969
volumes:
db-data:
name: sut-se-price-map_db-data
pgadmin:
name: sut-se-price-map_pgadmin