forked from bibboxen/bibbox-admin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.server.yml
71 lines (65 loc) · 1.75 KB
/
docker-compose.server.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
67
68
69
70
71
# itk-version: 1.0.0
version: "3"
networks:
frontend:
external: true
app:
driver: bridge
internal: false
services:
phpfpm:
image: itkdev/php7.4-fpm:alpine
restart: unless-stopped
networks:
- app
environment:
- PHP_MAX_EXECUTION_TIME=30
- PHP_MEMORY_LIMIT=128M
- COMPOSER_VERSION=1
depends_on:
- memcached
volumes:
- .:/app:delegated
- drush-cache:/root/.drush
nginx:
image: nginx:stable-alpine
restart: unless-stopped
networks:
- app
- frontend
depends_on:
- phpfpm
ports:
- '80'
volumes:
- ${PWD}/.docker/vhost.conf:/etc/nginx/conf.d/default.conf:ro
- ./:/app:rw
labels:
- "traefik.enable=true"
- "traefik.docker.network=frontend"
- "traefik.http.routers.${COMPOSE_PROJECT_NAME}-http.rule=Host(`${COMPOSE_SERVER_DOMAIN}`)"
- "traefik.http.routers.${COMPOSE_PROJECT_NAME}-http.entrypoints=web"
- "traefik.http.routers.${COMPOSE_PROJECT_NAME}-http.middlewares=redirect-to-https"
- "traefik.http.middlewares.redirect-to-https.redirectscheme.scheme=https"
- "traefik.http.routers.${COMPOSE_PROJECT_NAME}.rule=Host(`${COMPOSE_SERVER_DOMAIN}`)"
- "traefik.http.routers.${COMPOSE_PROJECT_NAME}.entrypoints=websecure"
#- "traefik.http.routers.${COMPOSE_PROJECT_NAME}.middlewares=ITKBasicAuth@file"
memcached:
image: 'memcached:latest'
restart: unless-stopped
networks:
- app
environment:
- MEMCACHED_CACHE_SIZE=64
drush:
image: itkdev/drush6:latest
networks:
- app
entrypoint:
- drush
volumes:
- drush-cache:/root/.drush
- ./:/app
# Drush cache volume to persist cache between runs.
volumes:
drush-cache: