summaryrefslogtreecommitdiffstats
path: root/pasture.castle.yml
blob: 516daf1bfcc91f876b64d0b2931d624ad5e57501 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
services:
  pasture_one_actor:
    image: pasture-sandcastles
    build:
      dockerfile: ./pasture.Dockerfile
    volumes: 
      - ./volumes/pasture:/opt
    command: python -m fediverse_pasture.one_actor --port 80 --assets assets
    networks:
      pasture:
  pasture_runner:
    image: pasture-sandcastles
    build:
      dockerfile: ./pasture.Dockerfile
    volumes: 
      - ./volumes/pasture:/opt
    working_dir: /work
    depends_on:
      - pasture_one_actor
    command: /bin/sh
    stdin_open: true
    tty: true
    networks:
      pasture:
  pasture_http_signature:
    image: pasture-sandcastles
    build:
      dockerfile: ./pasture.Dockerfile
    volumes: 
      - ./volumes/pasture:/opt
    command: python -m fediverse_pasture.http_signature --port 80
    networks:
      pasture:
  pasture_verify_actor:
    container_name: actor.pasture.castle
    labels:
      - traefik.http.routers.pasture.rule=Host(`actor.pasture.castle`)
      - traefik.http.routers.pasture.tls=true
      - traefik.http.routers.pasture.tls.certresolver=smallstep
      - traefik.port=80
      - traefik.enable=true
    image: pasture-sandcastles
    build:
      dockerfile: ./pasture.Dockerfile
    volumes: 
      - ./volumes/pasture:/opt
    command: python -m fediverse_pasture.verify_actor --port 80 --domain pasture_verify_actor
    expose:
      - 80
    networks:
      pasture:
      fediverse:

  proxy:
    networks:
      default:
        aliases:
          - actor.pasture.castle
      fediverse:
        aliases:
          - actor.pasture.castle


networks:
  pasture:
    internal: true