-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
45 lines (42 loc) · 1.11 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
version: "1.0"
name: "patterns"
networks:
dev-patterns-network:
driver: bridge
external: true
ipam:
config:
- subnet: ${COMPOSE_SUBNET}
gateway: ${COMPOSE_GATEWAY}
services:
postgres-db-patterns:
container_name: postgres-db-pattern
command: -c 'max_connections=2000'
image: postgres:latest
restart: unless-stopped
hostname: postgres-db-patterns
environment:
POSTGRES_DB: patterns-database
POSTGRES_USER: postgres
POSTGRES_PASSWORD: admin
ports:
- ${POSTGRES_DB_EXTERNAL_PORT}:5432
volumes:
- ./data/pg:/var/lib/postgresql/data:cached
networks:
dev-patterns-network:
ipv4_address: ${POSTGRES_DB_ADDRESS}
# kps-kotlin-patterns-service:
# container_name: kps-kotlin-patterns-service
# hostname: kps-kotlin-patterns-service
# build:
# context: ./kotlin-inf
# ports:
# - ${BACKEND_REDUCERS_EXTERNAL_PORT}:8081
# env_file:
# - ./kotlin-inf/.env.docker
# depends_on:
# - postgres-db-patterns
# networks:
# dev-patterns-network:
# ipv4_address: ${BACKEND_REDUCERS_ADDRESS}