smk-chat/docker-compose.yml

36 lines
788 B
YAML
Raw Normal View History

2024-06-11 17:22:27 +03:00
version: "3.3"
services:
chat:
build: .
2024-06-14 01:59:37 +03:00
restart: always
2024-06-11 17:22:27 +03:00
ports:
2024-06-15 03:24:14 +03:00
- 8080:8080
2024-06-11 17:22:27 +03:00
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
2024-06-14 01:59:37 +03:00
volumes:
- ./postgres:/var/lib/postgresql/data
2024-06-11 17:22:27 +03:00
environment:
POSTGRES_USER: smk # The PostgreSQL user (useful to connect to the database)
POSTGRES_PASSWORD: CHANGEME # The PostgreSQL password (useful to connect to the database)
POSTGRES_DB: chat # The PostgreSQL default database (automatically created at first launch)
networks:
ne_nuzhen:
driver: bridge
ipam:
config:
- subnet: 10.5.0.0/16
2024-06-14 01:59:37 +03:00
gateway: 10.5.0.1