-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathdocker-compose.yml
54 lines (50 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
46
47
48
49
50
51
52
53
54
version: '3'
services:
app:
container_name: pwngrid_api
build: .
ports:
- 8666:8666
restart: on-failure
volumes:
- api:/usr/src/app/
depends_on:
- pwngrid-mysql
networks:
- pwngrid
pwngrid-mysql:
image: mysql:5.7
container_name: pwngrid_mysql
ports:
- 3306:3306
environment:
- MYSQL_ROOT_HOST=${DB_HOST}
- MYSQL_USER=${DB_USER}
- MYSQL_PASSWORD=${DB_PASSWORD}
- MYSQL_DATABASE=${DB_NAME}
- MYSQL_ROOT_PASSWORD=${DB_PASSWORD}
volumes:
- database_mysql:/var/lib/mysql
networks:
- pwngrid
phpmyadmin:
image: phpmyadmin/phpmyadmin
container_name: pwngrid_phpmyadmin
depends_on:
- pwngrid-mysql
environment:
- PMA_HOST=pwngrid-mysql
- PMA_USER=${DB_USER}
- PMA_PORT=${DB_PORT}
- PMA_PASSWORD=${DB_PASSWORD}
ports:
- 9090:80
restart: always
networks:
- pwngrid
volumes:
api:
database_mysql:
networks:
pwngrid:
driver: bridge