-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
52 lines (48 loc) · 1.17 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
48
49
50
51
52
version: '3'
services:
app:
profiles: ['devcontainer']
container_name: skku-ejs-dev
image: mcr.microsoft.com/vscode/devcontainers/typescript-node:18-bullseye
ports:
- 4000:4000
volumes:
- .:/workspace:cached
depends_on:
- dev-db
stdin_open: true
tty: true
environment:
DEVCONTAINER: 1
network_mode: host
dev-db:
container_name: skku-ejs-dev-db
image: postgres:14-alpine
ports:
- 5434:5432
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: 1234
POSTGRES_DB: skku
minio:
container_name: skku-ejs-dev-minio
image: minio/minio
command: server /workspace/minio --console-address ":9001"
ports:
- 9000:9000
- 9001:9001
environment:
MINIO_ROOT_USER: skku-ejs
MINIO_ROOT_PASSWORD: 12345678
volumes:
- .:/workspace:cached
mcservice:
container_name: skku-ejs-dev-minio-mc
image: minio/mc
restart: on-failure
entrypoint: >
/bin/sh -c "
/usr/bin/mc alias set myminio http://skku-ejs-dev-minio:9000 skku-ejs 12345678;
/usr/bin/mc mb myminio/test;
/usr/bin/mc policy set public myminio/test;
"