-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
85 lines (78 loc) · 1.94 KB
/
docker-compose.yml
File metadata and controls
85 lines (78 loc) · 1.94 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
# NOTE: This docker-compose file is for local development environment only.
services:
app:
profiles: ['devcontainer']
container_name: codedang-dev
build:
context: .
dockerfile: .devcontainer/Dockerfile
volumes:
- .:/workspace:cached
- /sys/fs/cgroup:/sys/fs/cgroup:rw
depends_on:
- rabbitmq
- database
stdin_open: true
tty: true
environment:
DEVCONTAINER: '1'
network_mode: host
privileged: true
cgroup: host
storage:
container_name: codedang-storage
image: minio/minio
ports:
- 9000:9000
- 9001:9001
command: server /data --console-address ":9001"
environment:
MINIO_ROOT_USER: 'skku'
MINIO_ROOT_PASSWORD: 'skku1234'
volumes:
- codedang-storage:/data
database:
container_name: codedang-database
image: postgres:16-alpine
ports:
- 5433:5432
environment:
POSTGRES_USER: 'postgres'
POSTGRES_PASSWORD: '1234'
POSTGRES_DB: 'skkuding'
volumes:
- codedang-database:/var/lib/postgresql/data
test-database:
container_name: codedang-test-database
image: postgres:16-alpine
ports:
- 5434:5432
environment:
POSTGRES_USER: 'postgres'
POSTGRES_PASSWORD: '1234'
POSTGRES_DB: 'skkuding'
volumes:
- codedang-test-database:/var/lib/postgresql/data
cache:
container_name: codedang-cache
image: redis:7-alpine
ports:
- 6380:6379
command: redis-server --requirepass ${REDIS_PASSWORD}
rabbitmq:
container_name: codedang-rabbitmq
image: rabbitmq:3.13-management-alpine
ports:
- 15672:15672 # Admin Management
- 5672:5672
environment:
RABBITMQ_DEFAULT_USER: 'skku'
RABBITMQ_DEFAULT_PASS: '1234'
RABBITMQ_DEFAULT_VHOST: 'vh'
volumes:
- codedang-rabbitmq:/var/lib/rabbitmq
volumes:
codedang-storage:
codedang-database:
codedang-test-database:
codedang-rabbitmq: