File: compose-split.yml

package info (click to toggle)
londiste 3.12-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 608 kB
  • sloc: python: 4,636; sh: 1,422; makefile: 75; awk: 14; sql: 1
file content (45 lines) | stat: -rw-r--r-- 682 bytes parent folder | download
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
# docker compose v2 file

# https://docs.docker.com/compose/compose-file/

# fixme: does not work yet

name: londiste-split

services:
  test:
    build:
      context: .
      dockerfile: etc/Dockerfile.worker
      args:
        PY: "3.10"
    volumes:
      - type: bind
        read_only: true
        source: .
        target: /repo
    networks:
      - testnet
    deploy:
      mode: global
    command: ["./run.sh"]

  db:
    build:
      context: .
      dockerfile: etc/Dockerfile.db
      args:
        PG: "15"
    volumes:
      - pgdata:/var/lib/postgresql/data
    networks:
      - testnet
    deploy:
      mode: global

volumes:
  pgdata:

networks:
  testnet: