33 lines
709 B
YAML
33 lines
709 B
YAML
|
version: "3.3"
|
||
|
|
||
|
services:
|
||
|
chat:
|
||
|
build: .
|
||
|
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
|
||
|
|
||
|
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
|
||
|
gateway: 10.5.0.1
|