docker-compose.yml 1.26 KB
Newer Older
Romain De Laage De Bellefaye's avatar
Romain De Laage De Bellefaye committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
version: "3.7"

volumes:
  castopod-media:
    name: "castopod-media"
  castopod-db:
    name: "castopod-db"

networks:
  proxy:
    external: true
  castopod-app:
    name: "castopod"
  castopod-db:
    name: "castopod-db"

services:
  app-back:
19
    image: registry.picasoft.net/pica-castopod-back:v2.0.0-alpha.57
Romain De Laage De Bellefaye's avatar
Romain De Laage De Bellefaye committed
20
21
22
    build: back
    container_name: "castopod-back"
    volumes:
23
      - ./secrets/cp_env.secrets:/castopod/.env
Romain De Laage De Bellefaye's avatar
Romain De Laage De Bellefaye committed
24
25
26
27
28
29
30
      - castopod-media:/castopod/public/media
    networks:
      - castopod-app
      - castopod-db
    restart: unless-stopped

  app-front:
31
    image: registry.picasoft.net/pica-castopod-front:v1.0.0-alpha.57
Romain De Laage De Bellefaye's avatar
Romain De Laage De Bellefaye committed
32
33
34
35
36
37
    build: front
    container_name: "castopod-front"
    networks:
      - castopod-app
      - proxy
    volumes:
38
      - castopod-media:/var/www/html/media:ro
Romain De Laage De Bellefaye's avatar
Romain De Laage De Bellefaye committed
39
40
    labels:
      traefik.http.routers.castopod.entrypoints: websecure
41
      traefik.http.routers.castopod.rule: Host(`podcast.picasoft.net`)
Romain De Laage De Bellefaye's avatar
Romain De Laage De Bellefaye committed
42
43
44
45
46
47
48
49
50
51
52
53
54
55
      traefik.http.services.castopod.loadbalancer.server.port: 80
      traefik.enable: true
    restart: unless-stopped

  db:
    image: mariadb:10.5
    container_name: "castopod-db"
    networks:
      - castopod-db
    volumes:
      - castopod-db:/var/lib/mysql
    env_file:
      - ./secrets/castopod-db.secrets
    restart: unless-stopped