docker-compose.yml 1.05 KB
Newer Older
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
version: "3.8"

services:
  aurweb-fastapi:
    build: .
    image: aurweb:latest
    init: true
    command: python -u -m hypercorn -b 0.0.0.0:8082 aurweb.asgi:app
    volumes:
      - ./aurweb:/aurweb/aurweb
      - ./migrations:/aurweb/migrations
      - ./alembic.ini:/aurweb/alembic.ini
      - ./schema:/aurweb/schema
      - ./test:/aurweb/test
      - ./templates:/aurweb/templates
      - ./Makefile:/aurweb/Makefile
    ports:
      - 8082:8082

  aurweb-php:
    image: aurweb:latest
    init: true
    command: php -S 0.0.0.0:8081 -t /aurweb/web/html
    volumes:
      - ./web:/aurweb/web
    ports:
      - 8081:8081

  nginx:
    image: aurweb:latest
    init: true
    command: nginx
    volumes:
      - ./docker/etc/nginx/nginx.conf:/etc/nginx/nginx.conf
    ports:
      - 8080:8080

  mysql:
    image: aurweb:latest
    init: true
    working_dir: /var/lib/mysql
    entrypoint: /mysql-entrypoint.sh
    command: mysqld_safe --datadir=/var/lib/mysql
    volumes:
      - mysql_data:/var/lib/mysql
    ports:
      - 3306:3306

volumes:
  mysql_data: {}