forked from bibboxen/bibselv
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
141 lines (130 loc) · 3.17 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
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
# itk-version: 3.1.0
version: "3"
networks:
frontend:
external: true
app:
driver: bridge
internal: false
services:
mariadb:
image: itkdev/mariadb:latest
networks:
- app
ports:
- '3306'
environment:
- MYSQL_ROOT_PASSWORD=password
- MYSQL_USER=db
- MYSQL_PASSWORD=db
- MYSQL_DATABASE=db
#- ENCRYPT=1 # Uncomment to enable database encryption.
phpfpm:
image: itkdev/php8.1-fpm:latest
networks:
- app
environment:
- PHP_XDEBUG_MODE=${PHP_XDEBUG_MODE:-off}
- PHP_MAX_EXECUTION_TIME=30
- PHP_MEMORY_LIMIT=256M
# Uncomment below to enable mailhog.
# - PHP_SENDMAIL_PATH=/usr/local/bin/mhsendmail --smtp-addr="mailhog:1025"
- DOCKER_HOST_DOMAIN=${COMPOSE_DOMAIN}
- COMPOSER_VERSION=2
- PHP_IDE_CONFIG=serverName=localhost
depends_on:
- mariadb
volumes:
- .:/app
nginx:
image: nginxinc/nginx-unprivileged:alpine
networks:
- app
- frontend
depends_on:
- phpfpm
- engine
ports:
- '8080'
volumes:
- ./.docker/vhost.conf:/etc/nginx/conf.d/default.conf:ro
- .:/app
labels:
- "traefik.enable=true"
- "traefik.docker.network=frontend"
- "traefik.http.routers.${COMPOSE_PROJECT_NAME}.rule=Host(`${COMPOSE_DOMAIN}`)"
# HTTPS config - uncomment to enable redirect from :80 to :443
- "traefik.http.routers.${COMPOSE_PROJECT_NAME}.middlewares=redirect-to-https"
- "traefik.http.middlewares.redirect-to-https.redirectscheme.scheme=https"
engine:
image: node:18
networks:
- app
working_dir: /app
environment:
- NODE_ENV=development
volumes:
- ./engine:/app
command: npm run dev
frontend:
image: node:18
command: npm run watch
networks:
- app
working_dir: /app
environment:
- NODE_ENV=development
volumes:
- .:/app
logstash:
image: docker.elastic.co/logstash/logstash:7.9.1
networks:
- app
ports:
- '28777'
volumes:
- ./.docker/logstash.yml:/usr/share/logstash/config/logstash.yml:ro
- ./.docker/jvm.options:/usr/share/logstash/config/jvm.options:ro
- .docker/pipeline:/usr/share/logstash/pipeline:ro
redis:
image: 'redis:6'
networks:
- app
ports:
- '6379'
memcached:
image: 'memcached:latest'
networks:
- app
ports:
- '11211'
environment:
- MEMCACHED_CACHE_SIZE=64
cypress:
image: cypress/included:12.7.0
networks:
- app
- frontend
environment:
- CYPRESS_VIDEO=false
volumes:
- .:/e2e
- /tmp/.X11-unix:/tmp/.X11-unix
working_dir: /e2e
entrypoint: cypress
labels:
- "traefik.enable=true"
- "traefik.docker.network=frontend"
mailhog:
image: itkdev/mailhog
networks:
- app
- frontend
ports:
- "1025"
- "8025"
labels:
- "traefik.enable=true"
- "traefik.docker.network=frontend"
- "traefik.http.routers.${COMPOSE_PROJECT_NAME}Mailhog.rule=Host(`mailhog-${COMPOSE_DOMAIN}`)"
- "traefik.http.services.${COMPOSE_PROJECT_NAME}Mailhog.loadbalancer.server.port=8025"