forked from tmitime/tmi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pwd.yml
50 lines (47 loc) · 1.45 KB
/
pwd.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
## Deploy a test instance on Play With Docker
## https://labs.play-with-docker.com/
## ---------------------------------------------------
## Disclaimer
## ---------------------------------------------------
## This deployment is not suitable for production
## as do not persists data and uses insecure
## credentials.
## ---------------------------------------------------
## DEMO PURPOSES. DO NOT USE IN PRODUCTION.
version: '3'
services:
app:
image: "tmitime/tmi:main"
ports:
- '80:80'
environment:
PLAY_WITH_DOCKER: "yes"
DB_HOST: mariadb
DB_DATABASE: '${DB_DATABASE:-tmi}'
DB_USER: '${DB_USERNAME:-tmi}'
DB_PASSWORD: '${DB_PASSWORD:-password}'
# APP_URL: http://localhost:8080
QUEUE_CONNECTION: sync
ADMIN_USERNAME: "[email protected]"
ADMIN_PASSWORD: "play.with.docker"
networks:
- sail
depends_on:
- mariadb
mariadb:
image: 'mariadb:10.6'
environment:
MARIADB_ALLOW_EMPTY_ROOT_PASSWORD: "yes"
MARIADB_ROOT_PASSWORD: ""
MARIADB_DATABASE: '${DB_DATABASE:-tmi}'
MARIADB_USER: '${DB_USERNAME:-tmi}'
MARIADB_PASSWORD: '${DB_PASSWORD:-password}'
volumes:
- 'sailmariadb:/var/lib/mysql'
networks:
- sail
networks:
sail:
volumes:
sailmariadb:
driver: local