-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
68 lines (64 loc) · 1.67 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
version: "3.6"
services:
nginx:
image: nginx:1.15
working_dir: /var/www/html
ports:
- "80:80"
- "443:443"
volumes:
- ./apps/api:/var/www/html/api
- ./apps/nuxt-app:/var/www/html/nuxt-app
- ./config/ssl:/etc/ssl:ro
- ./config/nginx/auth:/etc/nginx/auth
- ./config/nginx/nginx.conf:/etc/nginx/nginx.conf
- ./config/nginx/sites-dev:/etc/nginx/sites-enabled
php:
build: ./config/php
working_dir: /var/www/html/api
volumes:
- ./apps/api:/var/www/html/api
- ./config/php/xdebug-linux.ini:/usr/local/etc/php/conf.d/xdebug.ini
- ./config/php/php.ini:/usr/local/etc/php/php.ini
mysql:
image: mysql:5.7
ports:
- "3306:3306"
environment:
- MYSQL_DATABASE=${DB_NAME}
- MYSQL_ROOT_PASSWORD=${DB_ROOT_PASSWORD}
- MYSQL_USER=${DB_USERNAME}
- MYSQL_PASSWORD=${DB_PASSWORD}
volumes:
- ./data/schema.sql:/docker-entrypoint-initdb.d
- mysqldata:/var/lib/mysql
redis:
image: redis:alpine
command: redis-server --appendonly yes --requirepass "${REDIS_PASSWORD}"
volumes:
- ./data/redis:/data
ports:
- "6379:6379"
nuxt-app:
ports:
- "3000:80"
- "24678:24678"
build:
dockerfile: Dockerfile
context: ./config/nuxt-app
working_dir: /var/www/html/nuxt-app
user: node
volumes:
- ./apps/nuxt-app:/var/www/html/nuxt-app
environment:
API_BASE_URL: https://www.jurassicjs.eu/api
BASE_URL: https://my.jurassicjs.eu
NODE_ENV: dev
command: sh -c "npm i && npm run dev"
stdin_open: true
tty: true
networks:
- default
volumes:
mysqldata:
driver: local