-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
45 lines (40 loc) · 1.03 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
---
version: "3.4"
services:
member_card:
build: .
# image: "gcr.io/lv-digital-membership/member-card:latest"
restart: always
command: flask run
links:
- "postgres:postgres"
depends_on:
- "postgres"
# healthcheck:
# test: "curl localhost:3000/healthcheck"
# interval: "60s"
# timeout: "3s"
# start_period: "5s"
# retries: 3
ports:
- "127.0.0.1:5000:5000"
volumes:
- "./member_card:/member_card"
environment:
- PYTHONPATH=/member_card:/member_card/member_card
- SQLALCHEMY_DATABASE_URI=postgresql://member-card-user:member-card-password@db:5432/digital-membership
postgres:
image: postgres:14.1
restart: always
environment:
- POSTGRES_DB=lv-digital-membership-tests
- POSTGRES_PASSWORD=postgres
logging:
options:
max-size: 10m
max-file: "3"
ports:
- '5433:5432'
volumes:
- ./postgres-data:/var/lib/postgresql/data
- ./tests/config/sql/:/docker-entrypoint-initdb.d/