-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
50 lines (46 loc) · 1001 Bytes
/
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
49
version: '3'
services:
api:
build:
context: .
dockerfile: Dockerfile
links:
- memcached
- mysql
depends_on:
- memcached
- mysql
environment:
DEBUG: "true" # Any value equals true. To turn off debug mode, comment or delete this env var.
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: percona:8
environment:
MYSQL_ROOT_PASSWORD: "root"
MYSQL_USER: "api"
MYSQL_PASSWORD: "api"
MYSQL_DATABASE: "api"
container_name: mysql
couchdb:
image: couchdb:3.2
environment:
COUCHDB_USER: "api"
COUCHDB_PASSWORD: "api"
ports:
- "5984:5984"
container_name: couchdb
memcached:
image: memcached:1.6
container_name: memcached