-
-
Notifications
You must be signed in to change notification settings - Fork 93
/
docker-compose.yml
77 lines (72 loc) · 1.72 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
services:
nginx:
build:
context: .
dockerfile: sys/docker/alpine-nginx/Dockerfile
container_name: badge-poser-nginx
depends_on:
- phpfpm
env_file:
- ./.env
- ./.env.local
- ./.env.test
working_dir: /application
volumes:
- .:/application
- ./sys/nginx/default.conf.template.dev:/etc/nginx/templates/default.conf.template
ports:
- "8001:80"
- "8002:443"
networks:
- application-network
phpfpm:
build:
context: .
dockerfile: sys/docker/alpine-phpfpm/Dockerfile
container_name: badge-poser-phpfpm
depends_on:
- redis
env_file:
- ./.env
- ./.env.local
- ./.env.test
working_dir: /application
command: |
/bin/sh -c "
apk --no-cache add shadow
usermod -u 1000 www-data
groupmod -g 1000 www-data
chown -R www-data: /application
php-fpm
"
volumes:
- .:/application
- ./sys/php/php.ini-dev:/usr/local/etc/php/conf.d/zz-overrides.ini
ports:
- "9000:9000"
networks:
- application-network
node:
container_name: badge-poser-node
image: node:18.17.1-alpine3.18
user: "node"
working_dir: /application
volumes:
- .:/application:cached
networks:
- application-network
redis:
container_name: badge-poser-redis
image: redis:7.0.5-alpine3.16
ports:
- "6379:6379"
networks:
- application-network
sysctls:
# WARNING: The TCP backlog setting of 511 cannot be enforced because
# /proc/sys/net/core/somaxconn is set to the lower value of 128.
net.core.somaxconn: 1024
# Docker Networks
networks:
application-network:
driver: bridge