-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
49 lines (46 loc) · 898 Bytes
/
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
version: '3.6'
services:
db:
image: postgres:10-alpine
container_name: fundraiser-db
hostname: fundraiser-db
environment:
POSTGRES_PASSWORD: postgres
POSTGRES_USER: postgres
POSTGRES_DB: fundraiser
PGPORT: "5433"
ports:
- "5433:5433"
networks:
- backdb
volumes:
- "./initdb:/docker-entrypoint-initdb.d"
server:
image: fundraiser-server
hostname: fundraiser-server
container_name: fundraiser-server
ports:
- "8085:8085"
depends_on:
- db
networks:
- frontback
- backdb
links:
- db:database
client:
image: fundraiser-client
container_name: fundraiser-client
ports:
- "8080:8080"
depends_on:
- server
networks:
- frontback
links:
- server
networks:
backdb:
driver: bridge
frontback:
driver: bridge