-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose-pontsun.yml
69 lines (60 loc) · 1.67 KB
/
docker-compose-pontsun.yml
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
version: '3.8'
services:
biblioteca:
build:
context: .
target: base
entrypoint: ["/bin/sh", "-c" , "crontab /var/www/html/config/crontab.txt && apache2-foreground" ]
ports:
- "48480:8080"
depends_on:
- db
volumes:
- .:/var/www/html
- .composer:/home/.composer:cached
stdin_open: true
tty: true
networks:
- default
- pontsun
labels:
- 'traefik.port=8080'
- 'traefik.frontend.rule=Host:biblioteca.docker.test'
# Traefik v2
- 'traefik.enable=true'
- 'traefik.docker.network=pontsun'
- 'traefik.http.routers.biblioteca.service=biblioteca'
- 'traefik.http.routers.biblioteca.entrypoints=https,http'
- 'traefik.http.routers.biblioteca.rule=Host(`biblioteca.docker.test`)'
- 'traefik.http.services.biblioteca.loadbalancer.server.port=8080'
- 'traefik.http.routers.biblioteca.middlewares=https_redirect'
- 'traefik.http.middlewares.https_redirect.redirectscheme.scheme=https'
- 'traefik.http.middlewares.https_redirect.redirectscheme.permanent=true'
db:
image: mariadb:10.10
environment:
- MYSQL_ROOT_PASSWORD=biblioteca
- MYSQL_DATABASE=biblioteca
- MYSQL_USER=biblioteca
- MYSQL_PASSWORD=biblioteca
ports:
- "49405:3306"
volumes:
- mariadb:/var/lib/mysql
networks:
- default
typesense:
image: typesense/typesense:0.26.0.rc46
restart: on-failure
ports:
- 8983
- "8108:8108"
volumes:
- searchdata:/data
command: '--data-dir /data --api-key=xyz --enable-cors'
volumes:
mariadb:
searchdata:
networks:
pontsun:
external: true