-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
50 lines (49 loc) · 1.14 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
version: '3.8'
services:
database:
container_name: database
image: mysql:8.0
command: --default-authentication-plugin=mysql_native_password
environment:
MYSQL_ROOT_PASSWORD: secret
MYSQL_DATABASE: pokemon
MYSQL_USER: pokemon
MYSQL_PASSWORD: pokemon
ports:
- '4306:3306'
volumes:
- ./mysql:/var/lib/mysql:cached
frontend:
container_name: frontend
build:
context: frontend
ports:
- '3000:3000'
volumes:
- /var/www/pokemon-manager-frontend/node_modules
- ./frontend:/var/www/pokemon-manager-frontend
stdin_open: true
depends_on:
- backend
backend:
container_name: backend
build:
context: backend
ports:
- '9008:9008'
volumes:
- /var/www/pokemon-manager-backend/vendor
- ./backend:/var/www/pokemon-manager-backend
depends_on:
- database
nginx:
container_name: nginx
image: nginx:stable-alpine
ports:
- '8080:80'
volumes:
- ./backend:/var/www/pokemon-manager-backend
- ./nginx/default.conf:/etc/nginx/conf.d/default.conf
depends_on:
- backend
- database