-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
59 lines (59 loc) · 1.58 KB
/
docker-compose.yml
File metadata and controls
59 lines (59 loc) · 1.58 KB
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
services:
mysql:
container_name: database
image: mysql:8.0
restart: on-failure
command: --default-authentication-plugin=mysql_native_password
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
MYSQL_DATABASE: ${MYSQL_DATABASE}
MYSQL_USER: ${MYSQL_USER}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
env_file:
- .env
ports:
- '4306:3306'
volumes:
- ./mysql:/var/lib/mysql
adminer:
image: adminer:latest
restart: on-failure
environment:
ADMINER_DEFAULT_SERVER: 'mysql'
depends_on:
- mysql
ports:
- '${ADMINER_PORT}:8080'
nginx:
image: nginx:alpine
restart: on-failure
depends_on:
- php
volumes:
- './apps/backend/public/:/usr/src/backend/public'
- './docker/nginx/default.conf:/etc/nginx/conf.d/default.conf:ro'
ports:
- '${NGINX_PORT}:80'
php:
build:
context: .
dockerfile: docker/php/Dockerfile
restart: on-failure
env_file:
- .env
depends_on:
- mysql
volumes:
- './apps/backend/:/usr/src/backend'
react:
stdin_open: true
tty: true
build:
context: .
dockerfile: docker/react/Dockerfile
env_file:
- .env
volumes:
- './apps/frontend:/usr/src/frontend'
ports:
- '${REACT_PORT}:${REACT_PORT}'