45 lines
935 B
YAML
Executable File
45 lines
935 B
YAML
Executable File
version: "3.7"
|
|
services:
|
|
|
|
# vue-app:
|
|
# build:
|
|
# context: ./vue/
|
|
# dockerfile: Dockerfile
|
|
# ports:
|
|
# - "8080:8080" # Adjust the port as needed for your Rust application
|
|
# networks:
|
|
# - app-network
|
|
|
|
postgres:
|
|
restart: always
|
|
container_name: "rss-postgres"
|
|
image: "postgres:15"
|
|
ports:
|
|
- "5432:5432"
|
|
environment:
|
|
- "POSTGRES_USER=admin"
|
|
- "POSTGRES_DB=rss"
|
|
- "POSTGRES_PASSWORD=secret+123"
|
|
volumes:
|
|
- postgres_data:/var/lib/postgresql/data
|
|
networks:
|
|
- app-network
|
|
|
|
# rust-app:
|
|
# build:
|
|
# context: . # Specify the path to your Rust application's Dockerfile
|
|
# dockerfile: Dockerfile
|
|
# ports:
|
|
# - "8001:8001" # Adjust the port as needed for your Rust application
|
|
# depends_on:
|
|
# - postgres
|
|
# networks:
|
|
# - app-network
|
|
|
|
networks:
|
|
app-network:
|
|
driver: bridge
|
|
|
|
volumes:
|
|
postgres_data:
|