version: "2.3" services: redis: restart: always image: redis:alpine healthcheck: test: ["CMD", "redis-cli", "ping"] volumes: - "./redisdata:/data" worker: build: . image: ungodlyfaded/activity-relay working_dir: /var/lib/relay restart: always init: true command: relay worker volumes: - "./env/actor.pem:/var/lib/relay/actor.pem" - "./env/config.yml:/var/lib/relay/config.yml" depends_on: - redis ports: - 8082:8080 server: build: . image: ungodlyfaded/activity-relay working_dir: /var/lib/relay restart: always init: true command: relay server volumes: - "./env/actor.pem:/var/lib/relay/actor.pem" - "./env/config.yml:/var/lib/relay/config.yml" depends_on: - redis ports: - 8081:8080