-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
48 lines (45 loc) · 1.09 KB
/
docker-compose.yml
File metadata and controls
48 lines (45 loc) · 1.09 KB
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:
user_api:
container_name: lumen-user-api
# user: "nobody:${GID}"
build:
context: ./vendor/bhaskarkc/php-nginx-server
dockerfile: Dockerfile
ports:
- "8000:3000"
env_file:
- ./.env
volumes:
- ./.:/var/www/html/:rw
depends_on:
- user_api_db
extra_hosts:
- "local.user-api.com.au:127.0.0.1"
networks:
- lumen_network
command: [ "./vendor/vishnubob/wait-for-it/wait-for-it.sh", "user_api_db:3306", "--", "/run/entrypoint.sh" ]
user_api_db:
container_name: lumen-user-api-db
image: mysql:5.6
ports:
- "${DB_CONTAINER_PORT:-3306}:3306"
environment:
- MYSQL_DATABASE=${DB_DATABASE:-lumen}
- MYSQL_USER=${DB_USERNAME:-lumen}
- MYSQL_PASSWORD=${DB_PASSWORD}
- MYSQL_ALLOW_EMPTY_PASSWORD=false
networks:
- lumen_network
user_api_redis:
container_name: lumen-user-api-redis
image: redis:6.0-alpine
ports:
- "6382:6379"
networks:
- lumen_network
networks:
lumen_network:
name: lumen-user-api
driver: "bridge"