-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
112 lines (102 loc) · 2.7 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
version: "3.8"
services:
mongo_seed:
image: mongo:latest
container_name: import-db
depends_on:
- mongo
volumes:
- ./containers/import_db.sh:/import_db.sh:ro
- ./containers/mongo_default_filters.json:/mongo_default_filters.json:ro
- ./docker/mongodb:/data
command: /import_db.sh
bellissimo-web-auth:
container_name: bell-web-guard
image: 'beevelop/nginx-basic-auth'
ports:
- '1337:80'
env_file:
- docker.env
## escape $ with $$ in Docker yml due to variable expansion
## example user/pass generated with htpasswd is foo:bar
# - HTPASSWD=foo:$$apr1$$odHl5EJN$$KbxMfo86Qdve2FH4owePn.
mongo:
restart: always
container_name: mongo
image: mongo:latest
volumes:
- ./docker/mongo-data:/data/db
healthcheck:
test: echo 'db.runCommand("ping").ok' | mongosh localhost:27017/test --quiet
redis:
container_name: redis
restart: always
image: redis:latest
healthcheck:
test: [ "CMD", "redis-cli", "--raw", "incr", "ping" ]
bellissimo-web:
restart: always
image: node:20
container_name: bellissimo-web
volumes:
- ./web:/app
working_dir: /app
command: npm run start
# ports:
# - 3000:3000
env_file:
- docker.env
depends_on:
- redis
- mongo
phpfpm:
container_name: phpfpm
# image: 'bitnami/php-fpm:8.3.9'
# image: 'php:8.4-rc-fpm'
image: 'crunchgeek/php-fpm:8.2'
volumes:
- ./public:/usr/src/app/public
- ./containers:/usr/src/app/containers
environment:
PHP_ENABLE_OPCACHE: false
PHP_MEMORY_LIMIT: '1g'
bellissimo:
restart: always
image: bellissimo-bin
container_name: bell
volumes:
- ./plugins.toml:/usr/src/app/plugins.toml:ro
- ./plugins:/usr/src/app/plugins
- ./public:/usr/src/app/public
- ./registry:/usr/src/app/registry
- ./containers:/usr/src/app/containers/:ro
- ./ipsum.toml:/usr/src/app/ipsum.toml:ro
- ./config.local.toml:/usr/src/app/config.local.toml:ro
- ./config.toml:/usr/src/app/config.toml:ro
build:
context: .
dockerfile: Dockerfile
environment:
- REDIS_URI=redis://redis/
- MONGO_URI=mongodb://mongo:27017
- PHP_FPM_HOST=phpfpm
- PHP_FPM_PORT=9000
- REMOTE_FUNCTION_ENDPOINT=http://bellissimo:8000
depends_on:
redis:
condition: service_healthy
mongo:
condition: service_healthy
nginx:
restart: always
image: nginx:latest
container_name: reverse_proxy
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf
# ports:
# - "443:443"
ports:
- 80:80
- 443:443
depends_on:
- bellissimo