-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
55 lines (49 loc) · 1.12 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:
frontend:
container_name: opspad-frontend-website
build:
context: frontend_website/
dockerfile: Dockerfile
image: godchosen/opspad-frontend:latest
volumes:
- './frontend_website:/app'
ports:
- 3000:3000
expose:
- 3000
backend:
container_name: opspad-backend
build:
context: backend/
dockerfile: Dockerfile
image: godchosen/ospadpad-backend:latest
environment:
MYSQL_DATABASE: $MYSQL_DATABASE
MYSQL_ROOT_PASSWORD: $MYSQL_ROOT_PASSWORD
MYSQL_HOST: $MYSQL_HOST
MYSQL_USER: $MYSQL_USER
MYSQL_PASSWORD: $MYSQL_PASSWORD
volumes:
- './backend:/app'
- '/app/node_modules'
ports:
- '8081:8081'
depends_on:
- db
db:
image: mysql:5.7
container_name: db-mysql
environment:
MYSQL_DATABASE: $MYSQL_DATABASE
MYSQL_ROOT_PASSWORD: $MYSQL_ROOT_PASSWORD
MYSQL_USER: $MYSQL_USER
MYSQL_PASSWORD: $MYSQL_PASSWORD
ports:
- 3306:3306
tty: true
volumes:
- db:/var/lib/db
- ./db:/docker-entrypoint-initdb.d/:rw
volumes:
db: