-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
executable file
·75 lines (70 loc) · 1.63 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
services:
db:
image: postgres:12
container_name: "bingo_db"
ports:
- "5432:5432"
volumes:
- db-data:/var/lib/postgresql/data
environment:
POSTGRES_DB: bingo_db
POSTGRES_USER: bingo
POSTGRES_PASSWORD: password
POSTGRES_HOST_AUTH_METHOD: trust
healthcheck:
test:
- "CMD-SHELL"
- "pg_isready"
interval: 10s
timeout: 5s
retries: 5
api: # hasura
build:
context: .
dockerfile: .docker/api.Dockerfile
container_name: "bingo_api"
ports:
- "8080:8080"
volumes:
- ./api:/hasura/api
env_file:
- ./settings/bingo.env
view-user:
image: node:18.17.0-alpine@sha256:58878e9e1ed3911bdd675d576331ed8838fc851607aed3bb91e25dfaffab3267
container_name: "view-user"
volumes:
- ./view-user:/app
working_dir: /app
command: sh -c "npm ci && npm run dev"
ports:
- "3000:3000"
env_file:
- ./settings/bingo.env
stdin_open: true
tty: true
view-admin:
image: node:18.17.0-alpine@sha256:58878e9e1ed3911bdd675d576331ed8838fc851607aed3bb91e25dfaffab3267
container_name: "view-admin"
volumes:
- ./view-admin:/app
working_dir: /app
command: sh -c "npm ci && npm run dev"
ports:
- "3001:3000"
env_file:
- ./settings/admin.env
stdin_open: true
tty: true
minio:
image: minio/minio:latest
container_name: nutfes-minio
ports:
- "9000:9000"
- "9001:9001"
volumes:
- ./tmp/minio/data:/data
command: "server /data --console-address :9001"
env_file:
- ./settings/admin.env
volumes:
db-data: