-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
48 lines (48 loc) · 1.28 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
version: "3.9"
services:
web:
build: ./backend
# <Port exposed>: <FastAPI port running inside backend container>
ports:
- "8080:8080"
environment:
MYSQL_PWD: 'password'
depends_on:
- db
db:
build: ./database
restart: always
command:
--secure_file_priv=''
--local_infile=1
environment:
MYSQL_DATABASE: 'umami_db'
MYSQL_USER: 'user'
MYSQL_PASSWORD: 'password'
MYSQL_ROOT_PASSWORD: 'password'
TZ: 'America/Los_Angeles'
ports:
- '3306:3306'
expose:
- '3306'
volumes:
- ./database/data:/var/lib/mysql
- ./database/init.sql:/docker-entrypoint-initdb.d/~init.sql
- ./database/mock.sql:/docker-entrypoint-initdb.d/~mock.sql
nginx:
build: ./nginx
restart: always
ports:
- 80:80
- 443:443
volumes:
- ./certbot/conf:/etc/letsencrypt
- ./certbot/www:/var/www/certbot
command: "/bin/sh -c 'while :; do sleep 6h & wait $${!}; nginx -s reload; done & nginx -g \"daemon off;\"'"
certbot:
image: certbot/certbot
restart: always
volumes:
- ./certbot/conf:/etc/letsencrypt
- ./certbot/www:/var/www/certbot
entrypoint: "/bin/sh -c 'trap exit TERM; while :; do certbot renew; sleep 12h & wait $${!}; done;'"