-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
48 lines (44 loc) · 938 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
version: '3'
services:
db:
image: postgres:10.4
ports:
- "5432:5432"
volumes:
- db_data:/var/lib/postgreSQL
restart: always
environment:
POSTGRES_ROOT_PASSWORD: postgres
POSTGRES_DB: db
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
networks:
- backend
mockservice:
image: aliniribeiroo/mockservice:latest
ports:
- "8585:8585"
restart: always
networks:
- backend
diunysus-docker-postgres:
depends_on:
- db
- mockservice
image: aliniribeiroo/dionysus:latest
ports:
- "8080:8080"
restart: always
environment:
DB_HOST: jdbc:postgresql://db:5432/db
DB_USER: postgres
DB_PASSWORD: postgres
MOCK_APP_NAME: mockservice
networks:
- backend
volumes:
db_data:
### Networks Setup ############################################
networks:
backend:
driver: "bridge"