docker-compose.override.yml 1.73 KB
Newer Older
1
2
version: "3.8"

Kristian Klausen's avatar
magic  
Kristian Klausen committed
3
services:
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
  mariadb:
    image: aurweb:latest
    init: true
    entrypoint: /docker/mariadb-entrypoint.sh
    command: /usr/bin/mysqld_safe --datadir=/var/lib/mysql
    ports:
      # This will expose mariadbd on 127.0.0.1:13306 in the host.
      # Ex: `mysql -uaur -paur -h 127.0.0.1 -P 13306 aurweb`
      - "13306:3306"
    volumes:
      - mariadb_run:/var/run/mysqld # Bind socket in this volume.
      - mariadb_data:/var/lib/mysql
    healthcheck:
      test: "bash /docker/health/mariadb.sh"

  mariadb_init:
    depends_on:
      mariadb:
        condition: service_healthy

Kristian Klausen's avatar
magic  
Kristian Klausen committed
24
25
26
27
28
29
30
31
32
33
34
35
36
37
  ca:
    volumes:
      - ./cache:/cache

  git:
    volumes:
      - git_data:/aurweb/aur.git
      - ./cache:/cache

  smartgit:
    volumes:
      - git_data:/aurweb/aur.git
      - ./cache:/cache
      - smartgit_run:/var/run/smartgit
38
39
40
    depends_on:
      mariadb:
        condition: service_healthy
Kristian Klausen's avatar
magic  
Kristian Klausen committed
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
68
69
70
71
72

  php-fpm:
    volumes:
      - ./cache:/cache
      - ./aurweb:/aurweb/aurweb
      - ./migrations:/aurweb/migrations
      - ./test:/aurweb/test
      - ./web/html:/aurweb/web/html
      - ./web/template:/aurweb/web/template
      - ./web/lib:/aurweb/web/lib
      - ./templates:/aurweb/templates

  fastapi:
    volumes:
      - ./cache:/cache
      - ./aurweb:/aurweb/aurweb
      - ./migrations:/aurweb/migrations
      - ./test:/aurweb/test
      - ./web/html:/aurweb/web/html
      - ./web/template:/aurweb/web/template
      - ./web/lib:/aurweb/web/lib
      - ./templates:/aurweb/templates

  nginx:
    volumes:
      - git_data:/aurweb/aur.git
      - ./cache:/cache
      - ./logs:/var/log/nginx
      - ./web/html:/aurweb/web/html
      - ./web/template:/aurweb/web/template
      - ./web/lib:/aurweb/web/lib
      - smartgit_run:/var/run/smartgit