generated from BrunoCunha-19/ddd-classAssignment-odsoft
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose2.yml
50 lines (45 loc) · 917 Bytes
/
docker-compose2.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
version: "3"
services:
mysql:
container_name: ddd_forum_mysql
command: --default-authentication-plugin=mysql_native_password
image: mysql:latest
expose:
- 3306
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:
container_name: ddd_forum_adminer
image: adminer
depends_on:
- mysql
expose:
- 8080
ports:
- 8080:8080
redis:
container_name: ddd_forum_redis
image: redis:latest
expose:
- 6379
ports:
- 6379:6379
app:
container_name: ddd_forum_app
build:
context: .
dockerfile: Dockerfile
depends_on:
- mysql
- redis
expose:
- 3000
- 5001
ports:
- 3000:3000
- 5001:5001