version: "3" services: db: image: postgres:12 restart: always volumes: - db:/var/lib/postgresql/data environment: - POSTGRES_USER=kepton - POSTGRES_PASSWORD=password redis: image: redis:5-alpine command: redis-server --appendonly yes restart: always volumes: - redis:/data server: build: . image: kepton environment: DATABASE_URL: postgres://kepton:password@db/kepton REDIS_URL: redis:6379 env_file: .env depends_on: - redis - db ports: - 45943:45943 volumes: redis: db: