-
Notifications
You must be signed in to change notification settings - Fork 31
/
Copy pathdocker-compose.yml
34 lines (34 loc) · 993 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
version: '2'
services:
database:
image: mysql
ports:
- "3306:3306"
volumes:
- ./config/gfdbdump.sql:/docker-entrypoint-initdb.d/gfdbdump.sql
environment:
MYSQL_ROOT_PASSWORD: rootpass
MYSQL_USER: gopherface
MYSQL_PASSWORD: gopherface
MYSQL_DATABASE: gopherfacedb
webapp:
depends_on:
- database
build: .
ports:
- "8080:8080"
links:
- database:mysql
reverseproxy:
depends_on:
- webapp
image: "nginx"
volumes:
- ./config/nginx.conf:/etc/nginx/nginx.conf
# You should change the host mount paths for the following two entries to the appropriate location of
# your Let's Encrypt key files
- /etc/letsencrypt/live/gopherface.kamesh.com/fullchain.pem:/etc/nginx/certs/gopherfacecert.pem
- /etc/letsencrypt/live/gopherface.kamesh.com/privkey.pem:/etc/nginx/certs/gopherfacekey.pem
ports:
- "80:80"
- "443:443"