-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
41 lines (38 loc) · 904 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
version: "3.5"
services:
mysql:
image: mariadb:latest
environment:
MYSQL_DATABASE: waifucollector
# this mysql database should only be exposed to the other services
MYSQL_ROOT_PASSWORD: waifu
volumes:
- /etc/localtime:/etc/localtime:ro
- ./mysql:/var/lib/mysql
networks:
- default
restart: always
server:
build: server/
environment:
- VIRTUAL_HOST=api.waifucollector.com
- LETSENCRYPT_HOST=api.waifucollector.com
- LETSENCRYPT_EMAIL=kirchler.lion@gmail.com
depends_on:
- mysql
networks:
- default
client:
build: client/
environment:
- VIRTUAL_HOST=waifucollector.com
- LETSENCRYPT_HOST=waifucollector.com
- LETSENCRYPT_EMAIL=kirchler.lion@gmail.com
depends_on:
- server
networks:
- default
networks:
default:
external: true
name: proxy