smk-chat/docker-compose.yml

36 lines
642 B
YAML

version: "3.3"
services:
chat:
build: .
restart: always
ports:
- 8080:8080
networks:
ne_nuzhen:
ipv4_address: 10.5.0.5
depends_on:
- db
db:
image: 'postgres:15'
ports:
- 5432:5432
networks:
ne_nuzhen:
ipv4_address: 10.5.0.6
volumes:
- ./postgres:/var/lib/postgresql/data
environment:
POSTGRES_USER: smk # do not forget to change these in config.json!
POSTGRES_PASSWORD: CHANGEME
POSTGRES_DB: chat
networks:
ne_nuzhen:
driver: bridge
ipam:
config:
- subnet: 10.5.0.0/16
gateway: 10.5.0.1