-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
43 lines (41 loc) · 962 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
42
43
version: "3.7"
services:
wastebin:
build: .
container_name: wastebin
environment:
BASE_URL: https://wastebin.io
BRAND_NAME: WASTEBIN
BRAND_PHRASE: Because all my code is trash
PAGE_TITLE: WASTEBIN
MYSQL_HOST: wastebin-db
MYSQL_PORT: 3306
MYSQL_DATABASE: wastebin
MYSQL_USER: wastebin
MYSQL_PASSWORD: wastebin
networks:
- wastebin
volumes:
- ./app:/var/www/html
restart: unless-stopped
depends_on:
- wastebin-db
ports:
- 8888:80
wastebin-db:
container_name: wastebin-db
image: mariadb:10.5.2-bionic
networks:
- wastebin
environment:
MYSQL_ROOT_PASSWORD: SuperSecretRootPassword
MYSQL_DATABASE: wastebin
MYSQL_USER: wastebin
MYSQL_PASSWORD: wastebin
command: '--event_scheduler=ON'
volumes:
- ./db:/var/lib/mysql
restart: unless-stopped
networks:
wastebin:
name: wastebin