summaryrefslogtreecommitdiff
path: root/roles/phoneof/templates/docker-compose.yml.j2
blob: 3acf768572f63f7e0f189883b3a5bb0193df48d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
version: "3"

services:
  api:
    restart: always
    image: git.simponic.xyz/simponic/phoneof
    healthcheck:
      test: ["CMD", "wget", "--spider", "http://localhost:8080/api/health"]
      interval: 5s
      timeout: 10s
      retries: 5
    environment:
      - FROM_PHONE_NUMBER={{ from_phone_number }}
      - TO_PHONE_NUMBER={{ to_phone_number }}
      - HTTPSMS_API_TOKEN={{ httpsms_api_token }}
      - HTTPSMS_SIGNING_KEY={{ httpsms_signing_key }}
    volumes:
      - ./db:/app/db
    dns:
      - {{ nameserver_ip }}
    ports:
      - "127.0.0.1:19191:8080"