-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
44 lines (44 loc) · 984 Bytes
/
docker-compose.yml
File metadata and controls
44 lines (44 loc) · 984 Bytes
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
version: '3.9'
services:
app:
container_name: recipe-search-app
build: .
context: .
dockerfile: Dockerfile
depends_on:
- postgres
restart: always
environment:
PORT: {PORT}
DB_HOST: {DB_HOST}
JWT_SECRET: {JWT_SECRET}
DB_PORT: {DB_PORT}
DB_USERNAME: {DB_USERNAME}
GITHUB_TOKEN: {GITHUB_TOKEN}
GH_AI_ENDPOINT: {GH_AI_ENDPOINT}
GH_AI_MODEL: {GH_AI_MODEL}
ports:
- '3000:3000'
networks:
- public_network
- private_network
postgres:
image: postgres:16
container_name: recipe-search-postgres
environment:
DB_USERNAME: {DB_USERNAME}
DB_PASSWORD: {DB_PASSWORD}
DB_NAME: {DB_NAME}
DB_PORT: {DB_PORT}
DB_HOST: {DB_HOST}
ports:
- '5432:5432'
volumes:
- pgdata:/var/lib/postgresql/data
networks:
-private_network
networks:
public_network:
driver: bridge
private_network:
driver: bridge