name: tapremly services: nixmsg-init: profiles: ["local-nixmsg"] build: context: . dockerfile: deploy/Dockerfile.init image: tapremly-nixmsg-init:local environment: NIXMSG_CONFIG: /etc/nixmsg/config.yaml volumes: - ./deploy/nixmsg.yaml:/etc/nixmsg/config.yaml:ro - nixmsg-data:/data - nixmsg-secrets:/secrets restart: "no" nixmsg: profiles: ["local-nixmsg"] image: git.asio.asia/nixevol/nixmsg:0.1.1 container_name: tapremly-nixmsg depends_on: nixmsg-init: condition: service_completed_successfully environment: NIXMSG_CONFIG: /etc/nixmsg/config.yaml command: ["serve"] ports: - "127.0.0.1:7443:7443" volumes: - ./deploy/nixmsg.yaml:/etc/nixmsg/config.yaml:ro - nixmsg-data:/data healthcheck: test: ["CMD", "/nixmsg", "healthcheck"] interval: 5s timeout: 5s retries: 30 start_period: 5s stop_grace_period: 30s restart: unless-stopped tapremly: build: context: . dockerfile: Dockerfile additional_contexts: websrc: ../web image: tapremly:local container_name: tapremly-server environment: TAPREMLY_LISTEN: ":8080" TAPREMLY_DATA_DIR: /data TAPREMLY_COOKIE_SECURE: "false" TAPREMLY_ADMIN_USERNAME: admin NIXMSG_URL: https://nm.asio.asia NIXMSG_ADMIN_USER: admin NIXMSG_ADMIN_PASSWORD_FILE: /secrets/nixmsg-admin-password ports: - "127.0.0.1:8080:8080" volumes: - tapremly-data:/data - nixmsg-secrets:/secrets:ro healthcheck: test: ["CMD", "wget", "-q", "-O", "/dev/null", "http://127.0.0.1:8080/healthz"] interval: 5s timeout: 5s retries: 30 start_period: 8s restart: unless-stopped volumes: nixmsg-data: nixmsg-secrets: tapremly-data: