-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
47 lines (45 loc) · 1001 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
44
45
46
47
services:
# officehours:
# build: .
# container_name: officehours
# restart: unless-stopped
# ports:
# - '3000:3000'
# volumes:
# - '/home/youboon2/projects/officehours-node/.env.docker:/usr/src/app/.env'
# depends_on:
# mysql:
# condition: service_healthy
mysql:
image: mysql:5.7
container_name: mysql
restart: unless-stopped
ports:
- '3306:3306'
environment:
MYSQL_DATABASE: officehours
MYSQL_USER: officehours
MYSQL_PASSWORD: password
MYSQL_RANDOM_ROOT_PASSWORD: fact
healthcheck:
test:
[
'CMD',
'mysqladmin',
'ping',
'-h',
'localhost',
'-uofficehours',
'-ppassword',
]
interval: 5s
timeout: 5s
retries: 20
phpmyadmin:
image: phpmyadmin:latest
container_name: phpmyadmin
restart: unless-stopped
ports:
- '8080:80'
environment:
PMA_ARBITRARY: 1