-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
47 lines (40 loc) · 938 Bytes
/
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
version: '3.1'
services:
db:
image: mysql
restart: unless-stopped
environment:
MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
MYSQL_DATABASE: nemodb
volumes:
- nemo_mysql:/var/lib/mysql
container_name: mysql_nemo_db
backend:
build:
context: ./backend
dockerfile: Dockerfile
depends_on:
- db
container_name: spring_backend
environment:
SPRING_DATASOURCE_URL: jdbc:mysql://db:3306/nemodb
SPRING_DATASOURCE_USERNAME: root
SPRING_JPA_HIBERNATE_DDL_AUTO: create-drop
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
depends_on:
- backend
container_name: react_frontend
restart: unless-stopped
proxy:
image: nginx
restart: unless-stopped
container_name: reverse_proxy
ports:
- "8080:80"
volumes:
- ./nginx/default.conf:/etc/nginx/conf.d/default.conf
volumes:
nemo_mysql: