-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
62 lines (57 loc) · 1.28 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
version: '3.8'
services:
app:
build:
context: ./
dockerfile: Dockerfile
container_name: programwithgio-app
restart: always
working_dir: /var/www/
volumes:
- ./public:/var/www/public
- ./app:/var/www/app
environment:
DB_HOST: mysql-db
DB_USER: root
DB_PASSWORD: ''
DB_NAME: c&a_indoor_net # Changed database name to avoid special characters
depends_on:
- mysql-db
nginx:
image: nginx:1.19-alpine
container_name: programwithgio-nginx
restart: always
ports:
- 8000:80
volumes:
- ./public:/var/www/public
- ./app:/var/www/app
- ./nginx:/etc/nginx/conf.d
depends_on:
- app
mysql-db:
image: mysql:8.0
container_name: mysql-db
platform: linux/amd64
environment:
MYSQL_ROOT_PASSWORD: ''
MYSQL_DATABASE: c&a_indoor_net # Changed database name to avoid special characters
MYSQL_USER: root
MYSQL_PASSWORD: ''
ports:
- "3300:3300"
volumes:
- db_data:/var/lib/mysql
phpmyadmin:
image: phpmyadmin/phpmyadmin
container_name: phpmyadmin
platform: linux/amd64
links:
- mysql-db
ports:
- "8081:80"
environment:
PMA_HOST: mysql-db
MYSQL_ROOT_PASSWORD: ''
volumes:
db_data: