-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
67 lines (62 loc) · 1.26 KB
/
docker-compose.yaml
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
services:
php-fpm:
image: tech-test
build:
context: .
dockerfile: docker/php/Dockerfile
args:
- "APP_ENV=dev"
- "XDEBUG=1"
volumes:
- "./code:/code"
- "./docker/php/config/xdebug.ini:/usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini"
restart: always
networks:
- tech-test-network
nginx:
build:
context: .
dockerfile: docker/nginx/Dockerfile
args:
- "APP_ENV=dev"
ports:
- "80:80"
volumes:
- "./code/public:/code/public"
depends_on:
- php-fpm
restart: always
networks:
- tech-test-network
mysql:
image: mysql:8.0.33
environment:
MYSQL_ROOT_PASSWORD: 'root_password'
MYSQL_DATABASE: 'laravel_db'
MYSQL_USER: 'laravel'
MYSQL_PASSWORD: 'password'
ports:
- '33070:3306'
volumes:
- mysql-data:/var/lib/mysql
restart: always
networks:
- tech-test-network
node:
image: node:alpine
working_dir: /srv/app
ports:
- 8000:8000
entrypoint: /bin/sh
volumes:
- type: bind
source: ./code
target: /srv/app
tty: true
networks:
- tech-test-network
networks:
tech-test-network:
driver: bridge
volumes:
mysql-data: