-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
51 lines (46 loc) · 1.04 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
version: "3.3"
services:
server:
image: maven:3.6.3-jdk-8
command: mvn spring-boot:run
ports:
- 8080:8080
volumes:
- ./server:/usr/src/mymaven:rw
working_dir: /usr/src/mymaven
networks:
- network_backend
client:
build: ./client
ports:
- 3333:3000
volumes:
- ./frontend:/usr/src/app
- /usr/src/app/node_modules
networks:
- network_backend
database:
image: mysql:5.7.31
environment:
MYSQL_DATABASE: db_codeflex
MYSQL_USER: admin
MYSQL_PASSWORD: spring-password!2018
MYSQL_ROOT_PASSWORD: spring-password!2018
volumes:
- ~/databases/db_codeflex/data:/var/lib/mysql
ports:
- 3306:3306
command: mysqld --sql_mode="STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"
networks:
- network_backend
code_executor:
build:
context: .
dockerfile: Dockerfile-compiler
ports:
- 22:22
networks:
- network_backend
networks:
network_backend:
driver: "bridge"