-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
47 lines (47 loc) · 964 Bytes
/
docker-compose.yml
File metadata and controls
47 lines (47 loc) · 964 Bytes
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
version: '3.7'
services:
rdocs-app:
container_name: rdocs-app
build:
context: .
dockerfile: ./Dockerfile
restart: always
ports:
- '3000:3000'
env_file:
- .env
environment:
- DATABASE_HOST=mysql-db
- DATABASE_USERNAME=root
- DATABASE_PASSWORD=password
- DATABASE_NAME=rdocs
- DATABASE_PORT=3306
- REDIS_URL=redis://redis:6379
depends_on:
- db
- redis
networks:
- gateway
db:
container_name: mysql-db
image: mysql:latest
command: --default-authentication-plugin=mysql_native_password
restart: always
ports:
- "3308:3306"
environment:
- MYSQL_ROOT_PASSWORD=password
- MYSQL_USER=rdoc
- MYSQL_PASSWORD=password
- MYSQL_DATABASE=rdocs
networks:
- gateway
redis:
container_name: redis
image: redis
ports:
- "6379:6379"
networks:
- gateway
networks:
gateway: {}