forked from ATouhou/alquran-api
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
56 lines (52 loc) · 1.09 KB
/
docker-compose.yml
File metadata and controls
56 lines (52 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
49
50
51
52
53
54
55
version: '3'
services:
api:
build:
context: .
dockerfile: Dockerfile
links:
- memcached
- mysql
depends_on:
- memcached
- mysql
environment:
# DEBUG: "true" # Any value will make it true. For false, remove the variable.
DB_USER: "api"
DB_PASSWORD: "api"
DB_NAME: "api"
DB_HOST: "mysql"
DB_PORT: "3306"
MEMCACHED_HOST: "memcached"
MEMCACHED_PORT: 11211
ports:
- "80:8080"
volumes:
- .:/var/www
privileged: true
container_name: api
mysql:
image: islamicnetwork/api.alquran.cloud-db:latest
environment:
MYSQL_ROOT_PASSWORD: "root"
MYSQL_USER: "api"
MYSQL_PASSWORD: "api"
MYSQL_DATABASE: "api"
container_name: mysql
ports:
- "3306:3306"
# couchdb:
# image: couchdb:3.2
# environment:
# COUCHDB_USER: "api"
# COUCHDB_PASSWORD: "api"
# ports:
# - "5984:5984"
# container_name: couchdb
memcached:
image: memcached:1.6
command:
- "memcached"
- "-m"
- "64"
container_name: memcached