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