-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.server.yml
59 lines (55 loc) · 1.53 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
# itk-version: 2.1.0
version: "3"
networks:
frontend:
external: true
app:
driver: bridge
internal: false
services:
phpfpm:
image: itkdev/php8.1-fpm:alpine
restart: unless-stopped
networks:
- app
extra_hosts:
- "host.docker.internal:host-gateway"
environment:
- PHP_MAX_EXECUTION_TIME=30
- PHP_MEMORY_LIMIT=128M
- PHP_UPLOAD_MAX_FILESIZE=25M
- PHP_POST_MAX_SIZE=30M
- COMPOSER_VERSION=2
depends_on:
- memcached
volumes:
- .:/app:delegated
nginx:
image: nginxinc/nginx-unprivileged:alpine
restart: unless-stopped
networks:
- app
- frontend
depends_on:
- phpfpm
ports:
- '8080'
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"
memcached:
image: 'memcached:latest'
restart: unless-stopped
networks:
- app
environment:
- MEMCACHED_CACHE_SIZE=64