-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
51 lines (47 loc) · 1.15 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
version: "3.4"
networks:
postgres:
volumes:
postgres-data:
postgres-log:
services:
database:
image: postgres
networks:
- postgres
ports:
- "5432:5432"
volumes:
- postgres-data:/var/lib/postgresql/data
- postgres-log:/var/log/postgresql
restart: always
env_file: .env
environment:
POSTGRES_DB: ${DB_NAME}
POSTGRES_USER: ${DB_USER}
POSTGRES_PASSWORD: ${DB_PASSWORD}
api:
build:
context: .
dockerfile: Dockerfile.dev
networks:
- postgres
ports:
- "7777:8080"
env_file: .env
volumes:
- ./:/app
environment:
POSTGRES_URL: ${DB_URL}/${DB_NAME}
POSTGRES_USER: ${DB_USER}
POSTGRES_PASSWORD: ${DB_PASSWORD}
JWT_SECRET_TOKEN: ${JWT_SECRET_TOKEN}
MINIO_HOST: ${MINIO_HOST}
MINIO_ACCESS_KEY: ${MINIO_ACCESS_KEY}
MINIO_SECRET_KEY: ${MINIO_SECRET_KEY}
MINIO_BUCKET: ${MINIO_BUCKET}
STRIPE_SECRET_KEY: ${STRIPE_SECRET_KEY}
STRIPE_SECRET_ENDPOINT: ${STRIPE_SECRET_ENDPOINT}
EDAMAM_APP_ID: ${EDAMAM_APP_ID}
EDAMAM_APP_KEY: ${EDAMAM_APP_KEY}
FRONT_BASE_URL: ${FRONT_BASE_URL}