-
Notifications
You must be signed in to change notification settings - Fork 123
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
42 lines (41 loc) · 827 Bytes
/
docker-compose.yml
File metadata and controls
42 lines (41 loc) · 827 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'
services:
api:
container_name: ${CONTAINER_NAME_API}
build: ./.docker/web
env_file:
- .env
ports:
- "${PORT_API}:80"
volumes:
- .docker/web/api.conf:/etc/apache2/sites-enabled/api.conf
- .:/var/www/html/
environment:
DOCKER_HOST_IP:
MYSQL_ROOT_PASSWORD:
MYSQL_DATABASE:
MYSQL_USER:
MYSQL_PASSWORD:
links:
- db
tty: true
db:
container_name: ${HOST_NAME}
image: mysql:5.6
ports:
- "${PORT_DB}:3306"
volumes:
- data:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
- MYSQL_DATABASE=${MYSQL_DATABASE}
app:
image: phpmyadmin/phpmyadmin:latest
links:
- db
ports:
- 80:80
environment:
- PMA_ARBITRARY=1
volumes:
data: