-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
45 lines (40 loc) · 1.01 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
34
35
36
37
38
39
40
41
42
43
44
45
# Use root/toor as user/password credentials
version: '3.1'
services:
mysql:
image: mysql:8.4
# 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: --mysql-native-password=ON
restart: always
ports:
- "3306:3306"
environment:
MYSQL_ROOT_PASSWORD: toor
MYSQL_DATABASE: restaurants
phpmyadmin:
image: phpmyadmin
restart: always
ports:
- "8081:80"
environment:
- PMA_ARBITRARY=1
adminer:
image: adminer
restart: always
ports:
- "8082:8080"
restaurants-offers:
container_name: restaurants-offers
build: .
restart: always
ports:
- "8080:8080"
depends_on:
- mysql
environment:
MYSQL_USER: root
MYSQL_PASSWORD: toor
MYSQL_HOST: mysql
MYSQL_PORT: 3306
MYSQL_DB_NAME: restaurants