-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.ci.yml
64 lines (59 loc) · 1.23 KB
/
docker-compose.ci.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
services:
newspaper:
command: "npm run dev"
build:
context: "./newspaper"
env_file:
- ./.env
init: true
depends_on:
- "postgres"
ports:
- ${NEWSPAPER_PORT}:3000
postgres:
image: postgres
restart: always
environment:
POSTGRES_PASSWORD: example
ports:
- "5432:5432"
minio:
image: quay.io/minio/minio:RELEASE.2022-01-08T03-11-54Z
command: server /data --console-address ":9001"
expose:
- "9000"
- "9001"
environment:
MINIO_ROOT_USER: minio
MINIO_ROOT_PASSWORD: minio123
hostname: minio
volumes:
- minio:/data1
nginx:
image: nginx:1.19.2-alpine
hostname: nginx
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
ports:
- "9000:9000"
- "9001:9001"
depends_on:
- minio
bootstrap:
build:
context: "./"
dockerfile: "./bootstrap/Dockerfile"
env_file:
- .env
- ./newspaper/.env
command: "npm run prisma:migrate"
tty: true
depends_on:
- "postgres"
volumes:
- "./bootstrap/inventory:/opt/app/inventory"
- "./newspaper/prisma:/opt/app/prisma"
- "./newspaper/.env:/opt/app/.env"
volumes:
bootstrap:
minio: