-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
45 lines (41 loc) · 951 Bytes
/
docker-compose.yaml
File metadata and controls
45 lines (41 loc) · 951 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
45
version: '3'
services:
db:
container_name: postgres
image: library/postgres:12
restart: always
command: postgres -c 'max_connections=1000'
environment:
POSTGRES_PASSWORD: 'T0x95ZXtK4'
POSTGRES_USER: 'devuser'
POSTGRES_DB: 'dev'
volumes:
- ./init.sql:/docker-entrypoint-initdb.d/init.sql
users:
build:
context: .
dockerfile: deploy/Dockerfile_users
volumes:
- .:/code
environment:
POSTGRES_PASSWORD: 'T0x95ZXtK4'
POSTGRES_USER: 'devuser'
POSTGRES_DB: 'dev'
POSTGRES_HOST: 'db'
command: python server.py
ports:
- 8070:8070
offers:
build:
context: .
dockerfile: deploy/Dockerfile_offers
volumes:
- .:/code
environment:
POSTGRES_PASSWORD: 'T0x95ZXtK4'
POSTGRES_USER: 'devuser'
POSTGRES_DB: 'dev'
POSTGRES_HOST: 'db'
command: python server.py
ports:
- 8075:8075