We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cca4382 commit 73850a0Copy full SHA for 73850a0
config_examples/settings.py
@@ -2,6 +2,7 @@
2
3
DEBUG = False
4
5
+DATABASE_CONNECTION_KWARGS['host'] = 'db'
6
DATABASE_CONNECTION_KWARGS['database'] = 'proxy_py'
7
DATABASE_CONNECTION_KWARGS['user'] = 'proxy_py'
8
DATABASE_CONNECTION_KWARGS['password'] = 'proxy_py'
docker-compose.yml
@@ -1,9 +1,22 @@
1
version: '3'
+
services:
- proxy_py:
+ db:
+ image: "postgres:12"
+ restart: always
+ environment:
+ - POSTGRES_USER=proxy_py
9
+ - POSTGRES_PASSWORD=proxy_py
10
+ - POSTGRES_DB=proxy_py
11
+ volumes:
12
+ - pgdata:/home/user/proxy_py_postgres_data
13
+ core:
14
15
build: .
16
ports:
17
- "55555:55555"
- postgres:
- image: "postgres:12"
18
+ depends_on:
19
+ - db
20
21
+volumes:
22
+ pgdata:
0 commit comments