-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.dev.yml
51 lines (51 loc) · 1.1 KB
/
docker-compose.dev.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
version: '3'
services:
frontent:
build: .
command: npm run start
depends_on:
- backend
volumes:
- ./src:/usr/src/app/src/
ports:
- "7081:7081"
environment:
API_HOST: localhost
API_PORT: 5000
backend:
build: .
container_name: ctf_app
restart: always
command: python server/run.py
depends_on:
- mysql
volumes:
- .:/usr/src/app
- /var/run/docker.sock:/var/run/docker.sock
ports:
- "5000:5000"
environment:
DATABASE_URL: mysql://user:pass@ctf_mysql/ctf
ADMIN_TOKEN: secret
HOST_IP: 192.168.1.234
swagger_ui:
container_name: ctf_swagger_ui
image: swaggerapi/swagger-ui
depends_on:
- backend
ports:
- 80:8080
volumes:
- ./:/ui
environment:
SWAGGER_JSON: /ui/swagger.json
mysql:
image: mysql:8.0.18
container_name: ctf_mysql
command: --default-authentication-plugin=mysql_native_password
restart: always
environment:
MYSQL_ROOT_PASSWORD: my-secret-pw
MYSQL_DATABASE: ctf
MYSQL_USER: user
MYSQL_PASSWORD: pass