-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose.yml
70 lines (66 loc) · 1.39 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
69
70
version: '3'
services:
juzt-web:
image: nginx:latest
container_name: juzt-web
restart: always
ports:
- ${APP_PORT}:80
volumes:
- ./:/var/www
- ./docker/nginx/conf.d/:/etc/nginx/conf.d/
environment:
- NGINX_HOST=${APP_DOMAIN_NAME}
depends_on:
- juzt-app
- juzt-db
env_file:
- .env
juzt-app:
image: php:7.3.7-fpm
container_name: juzt-app
build:
context: .
dockerfile: Dockerfile
restart: always
volumes:
- ./:/var/www
working_dir: /var/www
depends_on:
- juzt-db
juzt-db:
image: mariadb:latest
container_name: juzt-db
restart: always
env_file:
- .env
environment:
MYSQL_DATABASE: ${DB_DATABASE}
MYSQL_ROOT_PASSWORD: ${DB_ROOT_PASSWORD}
MYSQL_USER: ${DB_USERNAME}
MYSQL_PASSWORD: ${DB_PASSWORD}
ports:
- 3380:3306
volumes:
- juzt-data:/var/lib/mysql/
juzt-adminer:
image: adminer:latest
env_file:
- .env
container_name: juzt-adminer
restart: always
environment:
ADMINER_DEFAULT_DB_DRIVER: mysql
ADMINER_DEFAULT_DB_HOST: juzt-db
ADMINER_DEFAULT_DB_NAME: homestead
ADMINER_DESIGN: nette
ADMINER_PLUGINS: tables-filter tinymce
volumes:
- ./:/www
ports:
- ${ADMINER_PORT}:8080
depends_on:
- juzt-db
volumes:
juzt-data:
driver: local