didier/docker-compose.yml

30 lines
777 B
YAML
Raw Normal View History

version: '3.9'
services:
2022-07-25 19:07:57 +02:00
postgres:
image: postgres:14
container_name: didier
restart: always
environment:
2022-07-25 19:07:57 +02:00
- POSTGRES_DB=${POSTGRES_DB:-didier_dev}
- POSTGRES_USER=${POSTGRES_USER:-postgres}
- POSTGRES_PASSWORD=${POSTGRES_PASS:-postgres}
ports:
2022-07-25 19:07:57 +02:00
- "${POSTGRES_PORT:-5432}:${POSTGRES_PORT:-5432}"
volumes:
2022-07-25 19:07:57 +02:00
- postgres:/var/lib/postgresql/data
mongo:
image: mongo:5.0
2022-06-29 00:14:44 +02:00
restart: always
environment:
2022-07-25 19:07:57 +02:00
- MONGO_INITDB_ROOT_USERNAME=${MONGO_USER:-root}
- MONGO_INITDB_ROOT_PASSWORD=${MONGO_PASS:-root}
- MONGO_INITDB_DATABASE=${MONGO_DB:-didier_dev}
2022-07-25 20:33:20 +02:00
command: [--auth]
2022-06-29 00:14:44 +02:00
ports:
2022-07-25 19:07:57 +02:00
- "${MONGO_PORT:-27017}:${MONGO_PORT:-27017}"
volumes:
- mongo:/data/db
volumes:
2022-07-25 19:07:57 +02:00
postgres:
mongo: