generated from Randers-Kommune-Digitalisering/python-app-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
68 lines (63 loc) · 1.42 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
58
59
60
61
62
63
64
65
66
67
68
version: "3.9"
services:
app:
build: src
read_only: true
networks:
- app_network
ports:
- "8080:8080"
environment:
DEBUG: True
# DB_USER: user
# DB_USER: root
# DB_PASS: pass
# DB_HOST: db
# DB_PORT: 5432
# DB_PORT: 3306
# DB_DATABASE: demo
# Add a volumne if there is a need to write files
# volumes:
# - ./<local dir>:<container dir full path> E.g. /mydir/myfiles
# depends_on:
# db:
# condition: service_healthy
# db:
# image: postgres:16.1
# restart: always
# #user: postgres
# # Open ports for testing
# ports:
# - 5432:5432
# environment:
# POSTGRES_PASSWORD: pass
# POSTGRES_USER: user
# POSTGRES_DB: demo
# healthcheck:
# test: [ "CMD-SHELL", "pg_isready -q -U user -d demo" ]
# start_period: 5s
# interval: 5s
# timeout: 5s
# retries: 55
# networks:
# - app_network
# db:
# image: mariadb:10.6.11
# restart: always
# # Open ports for testing
# ports:
# - 3306:3306
# environment:
# MARIADB_ROOT_PASSWORD: pass
# MARIADB_DATABASE: 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