-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose_prod.yaml
46 lines (46 loc) · 998 Bytes
/
docker-compose_prod.yaml
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
version: "3.2"
services:
game_web:
container_name: game_web
build: ./web
restart: always
ports:
- 3000:3000
stdin_open: true
game_backend:
container_name: game_backend
build: ./backend
restart: always
ports:
- 4000:4000
environment:
- DATABASE_URL="mysql://root:game_mysql@prisma:3306/game"
game_mysql:
container_name: game_mysql
image: mysql:5.7
restart: always
environment:
MYSQL_ROOT_PASSWORD: prisma
MYSQL_USER: root
MYSQL_PASSWORD: prisma
volumes:
- "./mysql/init:/docker-entrypoint-initdb.d"
- game_mysql:/var/lib/mysql
ports:
- 3306:3306
game_phpmyadmin:
container_name: game_phpmyadmin
image: phpmyadmin/phpmyadmin
restart: always
environment:
- PMA_ARBITRARY=1
- PMA_HOST=game_mysql
- PMA_USER=root
- PMA_PORT=3306
- PMA_PASSWORD=prisma
links:
- game_mysql
ports:
- 8080:80
volumes:
game_mysql: