-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
64 lines (58 loc) · 1.3 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
version: '3.8'
services:
app:
container_name: misuzadanie_app
build:
args:
user: misuzadanie_user
uid: ${APP_USER_ID}
context: ./
dockerfile: Dockerfile
image: misuzadanie-app
restart: unless-stopped
working_dir: /var/www
volumes:
- ./:/var/www
- ./php.ini:/usr/local/etc/php/php.ini
depends_on:
- db
db:
image: mysql:8
container_name: misuzadanie_db
restart: unless-stopped
environment:
MYSQL_DATABASE: ${DB_DATABASE}
MYSQL_USER: ${DB_USERNAME}
MYSQL_PASSWORD: ${DB_PASSWORD}
MYSQL_ROOT_PASSWORD: ${DB_ROOT_PASSWORD}
ports:
- 3306:3306
- 33060:33060
volumes:
- misuzadanie-mysql-volume:/var/lib/mysql
nginx:
image: nginx:latest
container_name: misuzadanie_nginx
restart: unless-stopped
env_file: .env
volumes:
- ./public:/var/www/public
- ./nginx/conf.d/:/etc/nginx/conf.d/
depends_on:
- app
ports:
- ${NGINX_PORT}:80
phpmyadmin:
image: phpmyadmin/phpmyadmin:5.1
restart: always
ports:
- ${PHP_MY_ADMIN_PORT}:80
environment:
PMA_HOST: db
PMA_PORT: ${DB_PORT}
PMA_USER: ${PMA_USER}
PMA_PASSWORD: ${PMA_PASSWORD}
depends_on:
- db
volumes:
misuzadanie-mysql-volume: