-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
50 lines (47 loc) · 1.05 KB
/
docker-compose.yml
File metadata and controls
50 lines (47 loc) · 1.05 KB
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
version: "3.8"
services:
## frontend:
## container_name: frontendCTF
## build:
## context: ./frontend
## dockerfile: Dockerfile
## volumes:
## - ./frontend/src:/app/src:ro
## - /app/node_modules
## ports:
## - 80:3000
## environment:
## - CHOKIDAR_USEPOLLING=true
## networks:
## - mynetwork
phpmyadmin:
container_name: phpmyadminCTF
image: phpmyadmin
restart: always
ports:
- 8081:80
environment:
- PMA_ARBITRARY=1
networks:
- mynetwork
db:
image: mysql:5.7
container_name: mysqldbCTF
restart: always
environment:
MYSQL_DATABASE: 'db'
MYSQL_USER: 'user'
MYSQL_PASSWORD: 'password'
MYSQL_ROOT_PASSWORD: 'password'
ports:
- '3306:3306'
volumes:
- CTFtasticDB:/var/lib/mysql
#this is not required if used JPA, but it shouldn't impact JPA bcs setup.sql and Entites in backend are consistent
- ./setup.sql:/docker-entrypoint-initdb.d/setup.sql
networks:
- mynetwork
volumes:
CTFtasticDB:
networks:
mynetwork: