-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
53 lines (53 loc) · 1.32 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
version: "3.9"
services:
client:
build: ./frontend
ports:
- "3000:3000"
depends_on:
- web
web:
build: ./backend
ports:
- "8080:8080"
environment:
MYSQL_PWD: 'Launchpad'
depends_on:
- db
db:
build: ./database
restart: always
command:
--secure_file_priv=''
--local_infile=1
--default-authentication-plugin=mysql_native_password
environment:
MYSQL_DATABASE: 'labby'
MYSQL_USER: 'launchpad'
MYSQL_PASSWORD: 'Launchpad'
MYSQL_ROOT_PASSWORD: 'Launchpad'
TZ: 'America/Los_Angeles'
ports:
- '3306:3306'
expose:
- '3306'
volumes:
- ./database/data:/var/lib/mysql
- ./database/init.sql:/docker-entrypoint-initdb.d/~init.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;'"