-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
42 lines (39 loc) · 864 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
42 lines (39 loc) · 864 Bytes
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
version: '3.1'
services:
api-php8:
container_name: roga-api
build:
context: .
dockerfile: Dockerfile.dev
restart: always
working_dir: /var/www/html
environment:
- APACHE_RUN_USER=#1000
- WRITE_DB_CLUSTER=${WRITE_DB_CLUSTER}
- READ_DB_CLUSTER=${READ_DB_CLUSTER}
- DB_NAME=${DB_NAME}
- DB_PASS=${MYSQL_ROOT_PASS}
volumes:
- ./api:/var/www/html
ports:
- 8081:80
depends_on:
- db
db:
image: mysql:latest
container_name: roga-db
command: --default-authentication-plugin=mysql_native_password
restart: always
volumes:
- ./sql:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASS}
myadmin:
image: phpmyadmin/phpmyadmin
restart: always
links:
- db
ports:
- 8082:80
depends_on:
- db