-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
66 lines (59 loc) · 1.19 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
version: '3.8'
services:
# nginx:
# image: nginx:latest
# ports:
# - "80:80"
# - "443:443"
# networks:
# - app-network
# volumes:
# - ./nginx.conf:/etc/nginx/nginx.conf:ro
# - ./ssl/certificate.crt:/etc/ssl/certs/certificate.crt:ro
# - ./ssl/private.key:/etc/ssl/private/private.key:ro
# depends_on:
# - web
web:
build: .
volumes:
- .:/app
ports:
- "8000:8000"
networks:
- app-network
env_file:
- .env
depends_on:
- db
db:
image: mariadb
restart: always
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
MYSQL_DATABASE: ${MYSQL_DATABASE}
MYSQL_USER: ${MYSQL_USER}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
ports:
- "3306:3306"
networks:
- app-network
volumes:
- mariadb_data:/var/lib/mysql
ngrok:
image: ngrok/ngrok:latest
restart: always
ports:
- "4040:4040"
networks:
- app-network
environment:
NGROK_AUTHTOKEN: "${NGROK_AUTHTOKEN}"
command:
- "tunnel"
- "--label=edge=${NGROK_EDGE}"
- "http://web:8000"
volumes:
mariadb_data:
networks:
app-network:
driver: bridge