-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.dev.yml
54 lines (50 loc) · 1.22 KB
/
docker-compose.dev.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
services:
db:
image: postgres:15-alpine
stop_grace_period: 0s
environment:
POSTGRES_PASSWORD: ${DB_PASS}
PGUSER: ${DB_USER}
healthcheck:
test: ["CMD-SHELL", "pg_isready"]
interval: 2s
timeout: 5s
retries: 10
volumes:
- devDB:/var/lib/postgresql/data
backend:
stop_grace_period: 0s
env_file: backend/.env.dev
environment:
DB_HOST: db
DB_PASS: ${DB_PASS}
DB_USER: ${DB_USER}
JWT_PRIVATE_KEY: ${JWT_PRIVATE_KEY}
NODE_ENV: ${NODE_ENV-development}
SMTP_HOST: ${SMTP_HOST}
SMTP_PORT: ${SMTP_PORT}
SMTP_USER: ${SMTP_USER}
SMTP_PASS: ${SMTP_PASS}
FRONTEND_URL: ${FRONTEND_URL}
EMAIL_FROM: ${EMAIL_FROM}
CORS_ALLOWED_ORIGINS: ${CORS_ALLOWED_ORIGINS}
depends_on:
db:
condition: service_healthy
image: greenfoot/greenfoot-back-dev
frontend:
environment:
JWT_PRIVATE_KEY: ${JWT_PRIVATE_KEY}
stop_grace_period: 0s
env_file: frontend/.env.dev
image: greenfoot/greenfoot-front-dev
gateway:
restart: always
stop_grace_period: 0s
build:
context: gateway
dockerfile: Dockerfile.production
ports:
- ${GATEWAY_PORT}:80
volumes:
devDB: