-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
52 lines (49 loc) · 1.12 KB
/
docker-compose.yaml
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
version: "3"
services:
app:
build: .
ports:
- "8000:8000"
tty: true
restart: unless-stopped
environment:
MARIADB_USERNAME: user
MARIADB_PASSWORD: password
MARIADB_HOSTNAME: db
MARIADB_DATABASE: flipflap
volumes:
- ./data:/srv/data
depends_on:
- db
db:
image: mariadb:latest
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: flipflap
MYSQL_USER: user
MYSQL_PASSWORD: password
TZ: Asia/Tokyo
command: mysqld --character-set-server=utf8mb4 --collation-server=utf8mb4_general_ci
volumes:
- ./mysql/data:/var/lib/mysql
- ./mysql/init:/docker-entrypoint-initdb.d
ports:
- 3306:3306
restart: always
https-portal:
image: steveltn/https-portal:1
ports:
- '80:80'
- '443:443'
links:
- app:app
environment:
DOMAINS: 'api.flipflap.trasta.dev -> http://app:8000'
STAGE: 'local'
FORCE_RENEW: 'false'
CLIENT_MAX_BODY_SIZE: 0
restart: unless-stopped
volumes:
- https-portal_data:/var/lib/https-portal
volumes:
https-portal_data: