-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
57 lines (57 loc) · 1.82 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
services:
postgres:
image: 'postgres:16'
volumes:
- pgdata:/var/lib/postgresql/data
networks:
- mgmnt-app
environment:
- POSTGRES_USER=mgmnt
- POSTGRES_PASSWORD=mgmntpass
- POSTGRES_DB=mgmnt_dev
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U mgmnt -d mgmnt_dev']
interval: 10s
retries: 5
start_period: 30s
timeout: 10s
mgmnt-app:
container_name: mgmnt-app
depends_on:
postgres:
condition: service_healthy
restart: true
environment:
- CI=$CI
- NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=$NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY
- CLERK_SECRET_KEY=$CLERK_SECRET_KEY
- AWS_ACCOUNT_ID=$AWS_ACCOUNT_ID
- E2E_CLERK_RESEARCHER_EMAIL=$E2E_CLERK_RESEARCHER_EMAIL
- E2E_CLERK_RESEARCHER_PASSWORD=$E2E_CLERK_RESEARCHER_PASSWORD
- E2E_CLERK_MEMBER_EMAIL=$E2E_CLERK_MEMBER_EMAIL
- E2E_CLERK_MEMBER_PASSWORD=$E2E_CLERK_MEMBER_PASSWORD
- E2E_CLERK_ADMIN_EMAIL=$E2E_CLERK_ADMIN_EMAIL
- E2E_CLERK_ADMIN_PASSWORD=$E2E_CLERK_ADMIN_PASSWORD
- DATABASE_URL=postgres://mgmnt:mgmntpass@postgres:5432/mgmnt_dev
build:
context: .
dockerfile: ./Dockerfile.dev
volumes:
- ./:/app/
- node_modules:/app/node_modules
restart: always
networks:
- mgmnt-app
ports:
- 4000:4000
healthcheck:
test: ['CMD-SHELL', 'curl -s http://localhost:4000/']
interval: 30s
retries: 5
start_period: 45s
timeout: 30s
networks:
mgmnt-app:
volumes:
pgdata:
node_modules: