forked from code4romania/war-support-un-acoperis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
49 lines (44 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
version: '3.7'
services:
nginx:
image: library/nginx:stable-alpine
volumes:
- ./public:/var/www/html/public:ro,delegated
- ./.docker/nginx/vhost.conf:/etc/nginx/conf.d/default.conf:ro,cached
ports:
- 80:80
php:
build:
dockerfile: .docker/php/Dockerfile
context: .
target: dev_stage
environment:
APP_ENV: local
volumes:
- ./:/var/www/html:delegated
- ./.docker/php/dev/zz-xdebug.ini:/usr/local/etc/php/conf.d/zz-xdebug.ini:ro,cached
- ./.docker/php/dev/zzz-opcache-dev.ini:/usr/local/etc/php/conf.d/zzz-opcache-dev.ini:ro,cached
nodejs:
image: node:16-alpine
working_dir: /app
environment:
HOME: /tmp/npm
volumes:
- ./:/app:delegated
command: ["sleep", "infinity"]
database:
image: mysql:8
command: --default-authentication-plugin=mysql_native_password
environment:
MYSQL_ROOT_PASSWORD: developer
MYSQL_DATABASE: unacoperis
ports:
- 33066:3306
phpmyadmin:
image: phpmyadmin/phpmyadmin:latest
environment:
PMA_HOST: database
PMA_USER: root
PMA_PASSWORD: developer
ports:
- 8080:80