forked from bym-refitted/backyard-monsters-refitted
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
64 lines (60 loc) · 1.19 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
volumes:
db:
phpmyadmin:
networks:
bymr:
services:
web:
build: ./server
environment:
- BASE_URL=localhost
- PORT=3001
- DB_NAME=bymr
- DB_HOST=db
- DB_PORT=3306
- DB_USER=bymr
- DB_PASSWORD=bymr
# DO NOT USE THIS IN PRODUCTION!
- SECRET_KEY=178fd6594da164eac2e78d7ead343f8971c74df3910a36dd03da4cf6e1ae615e
networks:
- bymr
ports:
- 3001:3001
develop:
watch:
- action: sync
path: server
target: /app
depends_on:
db:
condition: service_healthy
db:
image: mariadb:lts
environment:
- MARIADB_ROOT_PASSWORD=root
- MARIADB_USER=bymr
- MARIADB_PASSWORD=bymr
- MARIADB_DATABASE=bymr
ports:
- 3306:3306
networks:
- bymr
volumes:
- db:/var/lib/mysql
healthcheck:
test: ["CMD", "healthcheck.sh", "--connect", "--innodb_initialized"]
start_period: 10s
interval: 10s
timeout: 5s
retries: 3
phpmyadmin:
image: phpmyadmin:5
environment:
- MYSQL_ROOT_PASSWORD=root
- PMA_HOST=db
ports:
- 8080:80
networks:
- bymr
depends_on:
- db