-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
40 lines (36 loc) · 1.03 KB
/
docker-compose.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
version: '3'
services:
webserver:
image: nginx:1.17-alpine
volumes:
- .:/srv/app:ro
- ./.docker/nginx.conf:/etc/nginx/conf.d/site.conf:ro
ports:
- "8000"
labels:
- "traefik.enable=true"
- "traefik.http.routers.php.rule=Host(`livres.localhost`)"
- "traefik.http.routers.php.entrypoints=secure"
- "traefik.http.routers.php.tls=true"
- "traefik.http.routers.unsecure-php.rule=Host(`livres.localhost`)"
- "traefik.http.routers.unsecure-php.entrypoints=web"
- "traefik.http.routers.unsecure-php.middlewares=force-https"
- "traefik.http.routers.unsecure-php.tls=false"
- "traefik.http.middlewares.force-https.redirectscheme.scheme=https"
php:
build:
context: ./.docker
dockerfile: php.Dockerfile
ports:
- 9000
volumes:
- .:/srv/app:delegated
working_dir: /srv/app
labels:
- "traefik.enable=false"
redisearch:
image: "redislabs/redisearch:2.0.5"
ports:
- 6379
labels:
- "traefik.enable=false"