-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose-dev.yml
64 lines (60 loc) · 1.44 KB
/
docker-compose-dev.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
55
56
57
58
59
60
61
62
version: '3'
services:
## DB
db:
image: mysql:8
volumes:
- ./db:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: password
MYSQL_DATABASE: wordpress
MYSQL_USER: wordpress
MYSQL_PASSWORD: wordpress
## wordpress
wordpress:
build: ./backend
depends_on:
- db
volumes:
- ./backend:/var/www/html/backend
environment:
WORDPRESS_DB_HOST: db
WORDPRESS_DB_USER: wordpress
WORDPRESS_DB_PASSWORD: wordpress
## Nuxt
frontend:
build:
context: ./frontend
dockerfile: Dockerfile.dev
entrypoint: [ 'yarn', 'dev' ]
ports:
- "3000:3000"
- "24678:24678"
volumes:
- ./frontend/logs:/root/.npm/_logs
- ./frontend:/app
- ./frontend/!node_modules:/app/
- ./frontend/!.nuxt:/app/
- ./frontend/!.output:/app/
# - ./frontend/composables:/app/composables
# - ./frontend/layouts:/app/layouts
# - ./frontend/pages:/app/pages
# - ./frontend/public:/app/public
# - ./frontend/types:/app/types
# - ./frontend/app.vue:/app/app.vue
# - ./frontend/nuxt.config.ts:/app/nuxt.config.ts
# - ./frontend/unocss.config.ts:/app/unocss.config.ts
depends_on:
- wordpress
## NGINX
proxy:
build: ./nginx
volumes:
- ./nginx/conf.d/default.conf:/etc/nginx/conf.d/default.conf
ports:
- 80:80
depends_on:
- frontend
- wordpress
volumes:
db_data: