generated from noodlee-system/microservice-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
38 lines (34 loc) · 931 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
version: "3.5"
services:
authentication-service:
container_name: authentication-service
build:
context: ./
dockerfile: Dockerfile
image: authentication-service
ports:
- "8081:8080"
depends_on:
- authentication-service_database
networks:
- noodlee-system-network
authentication-service_database:
container_name: authentication-service_database
image: postgres:9.6
ports:
- "5433:5432"
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: PdgDNLnlrr3NgshqwKJA
POSTGRES_DB: registration
volumes:
- authentication-service_database-volume:/var/lib/postgresql/gateway
- ./_database/init.sql:/docker-entrypoint-initdb.d/init.sql
networks:
- noodlee-system-network
networks:
noodlee-system-network:
name: noodlee-system-network
driver: bridge
volumes:
authentication-service_database-volume: