-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
33 lines (32 loc) · 1.08 KB
/
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
version: '3.9'
services:
web:
build: .
container_name: another-github-badges-web
ports:
- 3000:3000
restart: unless-stopped
environment:
GITHUB_USER_ID: ${GITHUB_USER_ID}
GITHUB_USER_TOKEN: ${GITHUB_USER_TOKEN}
db:
image: mysql:8.0.28
container_name: another-github-badges-db
ports:
- 3306:3306
# NOTE: use of "mysql_native_password" is not recommended: https://dev.mysql.com/doc/refman/8.0/en/upgrading-from-previous-series.html#upgrade-caching-sha2-password
# (this is just an example, not intended to be a production configuration)
command: --default-authentication-plugin=mysql_native_password
environment:
MYSQL_ROOT_PASSWORD: ${DATABASE_PASSWORD:-1234}
MYSQL_DATABASE: ${DATABASE_NAME:-github_badges}
volumes:
- database_data:/var/lib/mysql
restart: unless-stopped
adminer:
image: adminer
restart: unless-stopped
ports:
- 8080:8080
volumes:
database_data: