-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
67 lines (62 loc) · 1.22 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
version: '3'
networks:
default:
driver: bridge
services:
example-service:
build:
context: ./example-service
dockerfile: ./docker/Dockerfile
image: example-service:0.0.1
ports:
- "8080:8080"
- "8083:8083"
networks:
default:
aliases:
- java.api.boilerplate.docker.com
- example-service
depends_on:
- sb-admin
- db
- pgadmin4
sb-admin:
build:
context: ./sb-admin
dockerfile: ./docker/Dockerfile
image: sb-admin:0.0.1
ports:
- "9990:9990"
- "9993:9993"
networks:
default:
aliases:
- sb.admin.docker.com
- sb-admin
db:
image: postgres
environment:
POSTGRES_PASSWORD: "freedev"
ports:
- "5432:5432"
volumes:
- .mount/db:/var/lib/postgresql/data
networks:
default:
aliases:
- db
- db.docker.com
pgadmin4:
image: dpage/pgadmin4
environment:
PGADMIN_DEFAULT_EMAIL: "freedev@freedev.com"
PGADMIN_DEFAULT_PASSWORD: "freedev"
ports:
- "16543:80"
depends_on:
- db
networks:
default:
aliases:
- pgadmin4
- pgadmin4.docker.com