-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
62 lines (57 loc) · 1.17 KB
/
docker-compose.yml
File metadata and controls
62 lines (57 loc) · 1.17 KB
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
52
53
54
55
56
57
58
59
60
61
62
networks:
piq-dev:
driver: bridge
services:
piq-service:
container_name: piq-service
build:
context: .
dockerfile: PIQService/PIQService.Api/Dockerfile
restart: always
environment:
ASPNETCORE_ENVIRONMENT: Development
DB_CONTAINER: "piq-db"
env_file:
- .env
ports:
- "8080:8080"
depends_on:
- piq-db
account-service:
container_name: account-service
build:
context: .
dockerfile: AccountService/AccountService/Dockerfile
restart: always
environment:
ASPNETCORE_ENVIRONMENT: Development
DB_CONTAINER: "piq-db"
env_file:
- .env
ports:
- "5247:8080"
depends_on:
- piq-db
piq-db:
container_name: piq-db
image: mysql:9.2
restart: always
environment:
- MYSQL_ROOT_PASSWORD=${DATABASE_PASSWORD}
ports:
- "3306:3306"
volumes:
- db_data:/var/lib/mysql
redis:
container_name: redis
image: redis:8.0
ports:
- "6379:6379"
volumes:
- redis_data:/data
restart: unless-stopped
environment:
- REDIS_PASSWORD=${REDIS_PASSWORD}
volumes:
db_data:
redis_data: