-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
67 lines (62 loc) · 1.78 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
version: '3.3'
services:
php_fpm:
build: ./Docker/php
container_name: dividends_calculator_web
tty: true
working_dir: /var/www/html
volumes:
- .:/var/www/html
mariadb:
image: mariadb
# build: ./Docker/mysql
container_name: dividends_calculator_db
volumes:
- ./Docker/data/db:/var/lib/mysql/
environment:
TZ: "Europe/Vilnius"
MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
MYSQL_ROOT_PASSWORD: ${DB_PASSWORD?err}
MYSQL_USER: ${DB_USERNAME?err}
MYSQL_PASSWORD: ${DB_PASSWORD?err}
MYSQL_DATABASE: ${DB_DATABASE?err}
nginx:
image: nginx
# build: ./Docker/nginx
container_name: dividends_calculator_nginx
working_dir: /var/www/html
restart: unless-stopped
depends_on:
- php_fpm
ports:
# localPort:dockerPort
- "8082:80"
volumes:
- .:/var/www/html
- ./Docker/nginx/conf.d/:/etc/nginx/conf.d/
phpmyadmin:
image: phpmyadmin/phpmyadmin
ports:
- 8083:80
container_name: dividends_calculator_phpmyadmin
depends_on:
- mariadb
environment:
UPLOAD_LIMIT: 300M
PMA_ARBITRARY: 1
frontend:
build:
context: ./../dividends_calculator_front
dockerfile: ./../dividends_calculator_front/Docker/Dockerfile
container_name: dividends_calculator_frontend
ports:
- 3003:3000
- 24678:24678
volumes:
- ./../dividends_calculator_front:/app
- /app/node_modules
- /app/.nuxt
stdin_open: true
tty: true
volumes:
mariadb: