-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
47 lines (43 loc) · 968 Bytes
/
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
version: "3.9"
services:
app:
build: app
read_only: true
networks:
- app_network
ports:
- "8080:8080"
environment:
DEBUG: True
DB_USER: user
DB_PASS: pass
DB_HOST: db
DB_PORT: 5432
DB_DATABASE: demo
# Add a volumne if there is a need to write files
# volumes:
# - ./<local dir>:<container dir full path> E.g. /app/myfiles
# depends_on:
# db:
# condition: service_healthy
# db:
# image: postgres:16.1
# restart: always
# # Open ports for testing
# # ports:
# # - 5432:5432
# environment:
# POSTGRES_PASSWORD: pass
# POSTGRES_USER: user
# POSTGRES_DB: demo
# healthcheck:
# test: mysqladmin ping -h 127.0.0.1 -u root --password=pass
# start_period: 5s
# interval: 5s
# timeout: 5s
# retries: 55
# networks:
# - app_network
networks:
app_network:
name: app_network