-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
58 lines (53 loc) · 973 Bytes
/
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
version: "3.9"
services:
nginx:
build: ./nginx
volumes:
- .:/app
ports:
- "8001:8001"
environment:
- VIRTUAL_HOST=classroometrics.com
- LETSENCRYPT_HOST=classroometrics.com
- VIRTUAL_PORT=8001
depends_on:
- "web"
networks:
- proxy
- classroometrics
web:
build: .
volumes:
- .:/app
expose:
- "8000"
env_file:
- app.env
depends_on:
- "db"
networks:
- classroometrics
db:
image: mariadb:10.7.3
volumes:
- /var/lib/docker_data/classroometrics:/var/lib/mysql
expose:
- "3306"
env_file:
- app.env
networks:
- proxy
- classroometrics
redis:
image: redis:7.0-alpine
restart: always
expose:
- "6379"
command: redis-server --save 60 1 --loglevel warning
networks:
- classroometrics
networks:
proxy:
name: proxy
classroometrics:
name: classroometrics