-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yaml
60 lines (55 loc) · 1.08 KB
/
compose.yaml
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
services:
nginx:
image: macbre/nginx-http3:latest
ports:
- "443:443/tcp"
- "443:443/udp"
volumes:
- ./config/nginx.conf:/etc/nginx/nginx.conf:ro
- ./config/cert.pem:/etc/nginx/ssl/cert.pem:ro
- ./config/key.pem:/etc/nginx/ssl/key.pem:ro
networks:
- private
depends_on:
- backend
- swagger
restart: unless-stopped
user: "root"
swagger:
image: swaggerapi/swagger-ui
volumes:
- ./doc:/doc:ro
networks:
- private
environment:
SWAGGER_JSON: /doc/openapi.yaml
backend:
build:
context: ./
dockerfile: ./containers/php.dockerfile
volumes:
- ./:/app:ro
command: php /app/src/main.php
networks:
- private
depends_on:
- db
restart: unless-stopped
env_file:
- .env
deploy:
mode: replicated
replicas: 10
db:
image: mariadb:11.6.1-rc
volumes:
- ./db:/var/lib/mysql
ports:
- 3306:3306
networks:
- private
restart: unless-stopped
env_file:
- .env
networks:
private: