Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

push #371

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
25 changes: 25 additions & 0 deletions app/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
services:
frontend:
image: node:18-alpine
command: sh -c "yarn install && yarn run dev"
ports:
- 3000:3000
working_dir: /app
volumes:
- ./:/app
environment:
MYSQL_HOST: backend
MYSQL_USER: root
MYSQL_PASSWORD: secret
MYSQL_DB: todos

backend:
image: mysql:8.0
volumes:
- todo-mysql-data:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: secret
MYSQL_DATABASE: todos

volumes:
todo-mysql-data:
21 changes: 21 additions & 0 deletions app/docker_back.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
version: '3'
services:
backend:
image: mysql:8.0
volumes:
- todo-mysql-data:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: secret
MYSQL_DATABASE: todos
networks:
backend-network:
ipv4_address: 192.168.0.13

networks:
backend-network:
ipam:
config:
- subnet: 192.168.0.0/24

volumes:
todo-mysql-data:
15 changes: 15 additions & 0 deletions app/docker_front.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
version: '3'
services:
frontend:
image: node:18-alpine
command: sh -c "yarn install && yarn run dev"
ports:
- "80:3000"
working_dir: /app
volumes:
- ./:/app
environment:
MYSQL_HOST: 192.168.0.13
MYSQL_USER: root
MYSQL_PASSWORD: secret
MYSQL_DB: todos
Empty file modified build.sh
100755 → 100644
Empty file.