Skip to content

Commit 73850a0

Browse files
committed
container
1 parent cca4382 commit 73850a0

File tree

2 files changed

+17
-3
lines changed

2 files changed

+17
-3
lines changed

config_examples/settings.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
DEBUG = False
44

5+
DATABASE_CONNECTION_KWARGS['host'] = 'db'
56
DATABASE_CONNECTION_KWARGS['database'] = 'proxy_py'
67
DATABASE_CONNECTION_KWARGS['user'] = 'proxy_py'
78
DATABASE_CONNECTION_KWARGS['password'] = 'proxy_py'

docker-compose.yml

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,22 @@
11
version: '3'
2+
23
services:
3-
proxy_py:
4+
db:
5+
image: "postgres:12"
6+
restart: always
7+
environment:
8+
- 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+
restart: always
415
build: .
516
ports:
617
- "55555:55555"
7-
postgres:
8-
image: "postgres:12"
18+
depends_on:
19+
- db
920

21+
volumes:
22+
pgdata:

0 commit comments

Comments
 (0)