-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
48 lines (45 loc) · 1.03 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
version: '3.5'
services:
app:
container_name: ${PROJECT_NAME}-app
image: dersonsena/php-8.0
command: php -S 0.0.0.0:80 -t /usr/src/app/public
build:
context: .
dockerfile: Dockerfile
volumes:
- ./:/usr/src/app
ports:
- '${DOCKER_APP_PORT}:80'
networks:
- phpsummit
depends_on:
- db
- mongo
db:
image: mysql:5.7
container_name: ${PROJECT_NAME}-db
command: --default-authentication-plugin=mysql_native_password --explicit_defaults_for_timestamp=1
restart: always
ports:
- "${DOCKER_MYSQL_PORT}:3306"
environment:
MYSQL_ROOT_PASSWORD: ${DB_PASSWORD}
MYSQL_DATABASE: ${DB_DATABASE}
networks:
- phpsummit
volumes:
- ./.docker/mysql/data:/var/lib/mysql
mongo:
container_name: ${PROJECT_NAME}-mongo
image: mongo:3.6
restart: always
volumes:
- ./.docker/mongo/data:/data/db
ports:
- "${DOCKER_MONGO_PORT}:27017"
networks:
- phpsummit
networks:
phpsummit:
driver: bridge