adds manual networking to compose

This commit is contained in:
webuser@infra.woelkchen.at 2023-02-20 19:30:13 +01:00
parent ad39e4aaf0
commit 48318b1dd1

View File

@ -1,6 +1,6 @@
version: '3'
services:
database:
bump-database:
image: postgres:15
container_name: bump-database
environment:
@ -14,6 +14,9 @@ services:
command: postgres -c config_file=/etc/postgresql.conf
ports:
- "5555:5555"
networks:
bump-network:
ipv4_address: 172.20.0.2
bump-server:
build:
context: ./bump
@ -23,5 +26,16 @@ services:
- ../bump_server:/app
ports:
- "4012:4012"
networks:
- bump-network
extra_hosts:
- "database:172.20.0.2"
depends_on:
- database
networks:
bump-network:
ipam:
config:
- subnet: 172.20.0.0/16