bump_docker/docker-compose.yml

42 lines
898 B
YAML
Raw Normal View History

2022-01-11 13:49:43 +01:00
version: '3'
services:
2023-02-20 19:30:13 +01:00
bump-database:
image: postgres:15
container_name: bump-database
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=db
restart: unless-stopped
volumes:
- ./postgres-data:/var/lib/postgresql/data
- ./postgresql.conf:/etc/postgresql.conf
command: postgres -c config_file=/etc/postgresql.conf
ports:
- "5555:5555"
networks:
bump-network:
ipv4_address: 172.20.0.2
2022-01-11 13:49:43 +01:00
bump-server:
build:
context: ./bump
image: maenle/bump-server:latest
container_name: bump-server
volumes:
- ../bump_server:/app
ports:
- "4012:4012"
2023-02-20 19:30:13 +01:00
networks:
- bump-network
extra_hosts:
- "database:172.20.0.2"
2022-01-11 13:49:43 +01:00
depends_on:
- database
2023-02-20 19:30:13 +01:00
networks:
bump-network:
ipam:
config:
- subnet: 172.20.0.0/16