-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
51 lines (47 loc) · 1.13 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
49
50
51
version: '3'
services:
db:
container_name: morellis-mysql
image: mysql:latest
environment:
MYSQL_ROOT_PASSWORD: password
MYSQL_DATABASE: morellis
MYSQL_USER: morellis
MYSQL_PASSWORD: E4j+#2G^8Pa=^Nn9
volumes:
- ./data/mysql:/var/lib/mysql
ports:
- "33061:3306"
db-test:
container_name: morellis-mysql-test
image: mysql:latest
environment:
MYSQL_ROOT_PASSWORD: password
MYSQL_DATABASE: morellistest
MYSQL_USER: morellistest
MYSQL_PASSWORD: testpass
ports:
- "33062:3306"
redis:
container_name: morellis-redis
image: redis:latest
command: redis-server --requirepass ${REDIS_PASSWORD} --appendonly yes
volumes:
- ./data/redis:/data
ports:
- "63791:6379"
redis-test:
container_name: morellis-redis-test
image: redis:latest
command: redis-server
ports:
- "63792:6379"
swagger:
container_name: morellis-swagger
image: swaggerapi/swagger-ui
ports:
- "8001:8080"
volumes:
- ./swagger/spec:/usr/share/nginx/html/swagger
environment:
API_URL: swagger/swagger.yaml