-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
45 lines (45 loc) · 1.04 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
version: '2.4'
services:
web:
container_name: "vacation_planner_web"
env_file:
- .env
build:
context: ./docker/php
dockerfile: Dockerfile
user: $UID:$GID
ports:
- "8081:8081"
volumes:
- ${PWD}:/var/www
working_dir: /var/www
command: php -S 0.0.0.0:8081 public/index.php
depends_on:
- db
db:
container_name: "vacation_planner_db"
env_file:
- .env
build:
context: ./docker/mysql
dockerfile: Dockerfile
command: --default-authentication-plugin=mysql_native_password
restart: always
environment:
MYSQL_DATABASE: ${DB_NAME}
MYSQL_USER: ${DB_USERNAME}
MYSQL_PASSWORD: ${DB_PASSWORD}
MYSQL_ROOT_PASSWORD: ${DB_PASSWORD}
ports:
- "3390:3306"
frontend:
container_name: "vacation_planner_frontend"
image: node:alpine
volumes:
- ./frontend/:/app/frontend
working_dir: /app/frontend
environment:
NODE_ENV: development
ports:
- 8080:8080
command: npm run serve