-
Notifications
You must be signed in to change notification settings - Fork 7
/
docker-compose.yml
80 lines (75 loc) · 1.74 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
71
72
73
74
75
76
77
78
79
80
services:
app:
build:
args:
user: forus
uid: 1000
context: ./
dockerfile: ./docker/docker-compose/php/Dockerfile
image: forus-backend
container_name: forus-backend-app
restart: unless-stopped
working_dir: /var/www/
volumes:
- ./:/var/www
- ./docker/docker-compose/php/php.ini:/usr/local/etc/php/conf.d/php.ini
ports:
- "8000:80"
depends_on:
- forus-backend-db
networks:
- forus-network
forus-backend-db:
image: mysql:8.0
container_name: forus-backend-db
restart: unless-stopped
platform: linux/amd64
command: --default-authentication-plugin=mysql_native_password
environment:
MYSQL_DATABASE: ${DB_DATABASE}
MYSQL_ROOT_PASSWORD: ${DB_PASSWORD}
MYSQL_PASSWORD: ${DB_PASSWORD}
MYSQL_USER: ${DB_USERNAME}
SERVICE_TAGS: dev
SERVICE_NAME: mysql
volumes:
- ./docker/docker-compose/mysql:/docker-entrypoint-initdb.d
- mysql_data:/var/lib/mysql
ports:
- "33061:3306"
networks:
- forus-network
pma:
depends_on:
- forus-backend-db
image: phpmyadmin/phpmyadmin
profiles:
- phpmyadmin
container_name: forus-backend-phpmyadmin
restart: unless-stopped
ports:
- "8080:80"
environment:
PMA_HOST: forus-backend-db
MYSQL_ROOT_PASSWORD: ${DB_PASSWORD}
networks:
- forus-network
selenium:
shm_size: '1gb'
profiles:
- testing
depends_on:
- app
image: selenium/standalone-chrome
container_name: forus-backend-selenium
ports:
- "4444:4444"
networks:
- forus-network
networks:
forus-network:
name: forus-network
driver: bridge
volumes:
mysql_data:
driver: local