You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
423 B
33 lines
423 B
version: '3'
|
|
|
|
networks:
|
|
dbi:
|
|
external: false
|
|
|
|
services:
|
|
db:
|
|
image: postgres:17-alpine
|
|
restart: always
|
|
volumes:
|
|
- ./data:/var/lib/postgresql/data
|
|
networks:
|
|
- dbi
|
|
env_file:
|
|
- .env_db
|
|
|
|
web:
|
|
# to build the image
|
|
build:
|
|
context: .
|
|
container_name: dbi
|
|
ports:
|
|
- 4000:4000
|
|
depends_on:
|
|
- db
|
|
networks:
|
|
- dbi
|
|
env_file:
|
|
- .env
|
|
|
|
|