forked from soenac/api-dian
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
41 lines (38 loc) · 962 Bytes
/
docker-compose.yml
File metadata and controls
41 lines (38 loc) · 962 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
version: '3'
services:
nginx:
image: stenfrank/nginx:1.3
working_dir: /var/www/html
ports:
- "${APP_PORT}:80"
volumes:
- ./:/var/www/html
- ./docker/nginx/sites-available:/etc/nginx/sites-available
networks:
- api_dian
php:
image: stenfrank/php:1.3
working_dir: /var/www/html
volumes:
- ./:/var/www/html
networks:
- api_dian
mariadb:
image: mariadb
environment:
- MYSQL_USER=${MYSQL_USER}
- MYSQL_PASSWORD=${MYSQL_PASSWORD}
- MYSQL_DATABASE=${MYSQL_DATABASE}
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
ports:
- "3307:3306"
volumes:
- mysqldata:/var/lib/mysql
networks:
- api_dian
networks:
api_dian:
driver: "bridge"
volumes:
mysqldata:
driver: "local"