Please create a <REDACTED> file containing both PostgreSQL and <REDACTED>, with a common…
Rate quality
Private research annotation
Sign in to add a private research label or note.
- User
Please create a file containing both PostgreSQL and , with a common network named "db-nw" that is external.
- Assistant
Certainly! Here's an exampledocker-compose.yamlfile that sets up PostgreSQL and MariaDB with a common external network named "db-nw":
────────────────────────────────────────────────────────────────────
yamlCopy codeversion: '3.9'
services: postgresql: image: postgres:latest restart: always environment: POSTGRES_USER: your_postgres_username POSTGRES_PASSWORD: your_postgres_password POSTGRES_DB: your_postgres_database networks: - db-nw
mariadb: image: mariadb:latest restart: always environment: MYSQL_ROOT_PASSWORD: your_mariadb_root_password MYSQL_DATABASE: your_mariadb_database : your_mariadb_username MYSQL_PASSWORD: your_mariadb_password networks: - db-nw