forked from stemmlerjs/ddd-forum
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
47 lines (43 loc) · 1.07 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
version: "3"
services:
web:
container_name: ddd_app
build:
context: .
dockerfile: Dockerfile
ports:
- 3000:3000
- 5000:5000
environment:
- DDD_FORUM_APP_SECRET=${DDD_FORUM_APP_SECRET}
- DDD_FORUM_REDIS_URL=ddd_forum_redis
- DDD_FORUM_REDIS_PORT=6379
- DDD_FORUM_DB_HOST=ddd_forum_mysql
- DDD_FORUM_DB_USER=${DDD_FORUM_DB_USER}
- DDD_FORUM_DB_PASS=${DDD_FORUM_DB_PASS}
- DDD_FORUM_DB_DEV_DB_NAME=${DDD_FORUM_DB_DEV_DB_NAME}
depends_on:
- mysql
- redis
mysql:
container_name: ddd_forum_mysql
command: --default-authentication-plugin=mysql_native_password
image: mysql:latest
ports:
- 3306:3306
environment:
- MYSQL_ROOT_PASSWORD=rootpwd
- MYSQL_DATABASE=${DDD_FORUM_DB_DEV_DB_NAME}
- MYSQL_USER=${DDD_FORUM_DB_USER}
- MYSQL_PASSWORD=${DDD_FORUM_DB_PASS}
adminer:
image: adminer
depends_on:
- mysql
ports:
- 8080:8080
redis:
container_name: ddd_forum_redis
image: redis:latest
ports:
- 6379:6379