ITAvsCOVIDbot/docker-compose.yml

46 lines
780 B
YAML
Raw Normal View History

2021-05-21 03:28:16 +02:00
version: '3.7'
2021-01-06 17:57:35 +01:00
networks:
itavscovidbot.network:
name: itavscovidbot.network
2021-05-21 03:28:16 +02:00
driver: bridge
2021-01-06 17:57:35 +01:00
services:
db:
2021-05-21 03:28:16 +02:00
image: mongo:latest
2021-01-06 17:57:35 +01:00
container_name: itavscovidbot.db
restart: unless-stopped
env_file:
- ./db/.env
volumes:
- ./db/data:/data/db
networks:
- itavscovidbot.network
db.web:
depends_on:
- db
2021-05-21 03:28:16 +02:00
image: mongo-express:latest
2021-01-06 17:57:35 +01:00
container_name: itavscovidbot.db.web
restart: unless-stopped
env_file:
- ./db/web/.env
ports:
- 8081:8081
networks:
- itavscovidbot.network
app:
depends_on:
- db
build:
context: .
container_name: itavscovidbot.app
restart: unless-stopped
env_file:
- ./.env
networks:
- itavscovidbot.network