version: '3'

services:
  admin:
    container_name: admin
    image: notification-admin
    env_file: .env
    build:
      context: .
      dockerfile: devcontainer-admin/Dockerfile
    command: sleep infinity
    volumes:
      - .:/workspace:cached
    ports:
      - "6012:6012"
    expose:
      - "6012"
  adminredis:
    command: sh -c "rm -f /data/dump.rdb && redis-server --port 6379" # disable persistence
    image: redis:latest

networks:
  default:
    name: notify-network
    external: true
