-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathcompose.yml
More file actions
96 lines (88 loc) · 2.17 KB
/
Copy pathcompose.yml
File metadata and controls
96 lines (88 loc) · 2.17 KB
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
name: benefits
services:
client:
build:
context: .
dockerfile: appcontainer/Dockerfile
image: benefits_client:latest
env_file: .env
depends_on:
- postgres
ports:
- "${DJANGO_LOCAL_PORT:-8000}:8000"
dev:
build:
context: .
dockerfile: .devcontainer/Dockerfile
image: benefits_client:dev
env_file: .env
# https://code.visualstudio.com/docs/remote/create-dev-container#_use-docker-compose
entrypoint: sleep infinity
depends_on:
- server
- postgres
ports:
- "${DJANGO_LOCAL_PORT:-8000}:8000"
volumes:
- ./:/calitp/app
docs:
image: benefits_client:dev
entrypoint: mkdocs
command: serve --livereload --dev-addr "0.0.0.0:8001"
ports:
- "8001"
volumes:
- ./:/calitp/app
server:
image: ghcr.io/cal-itp/eligibility-server:main
env_file: .devcontainer/server/.env.server
ports:
- "8000"
volumes:
- ./.devcontainer:/.devcontainer
playwright:
build:
context: .
dockerfile: tests/playwright/Dockerfile
env_file: .env
image: benefits_client:playwright
volumes:
- ./tests/playwright:/playwright
- /tmp/.X11-unix:/tmp/.X11-unix
command: ./run.sh
postgres:
image: postgres:17
environment:
- POSTGRES_DB
- POSTGRES_USER
- POSTGRES_PASSWORD
ports:
- "${POSTGRES_PORT:-5432}:5432"
volumes:
- pgdata:/var/lib/postgresql/data
healthcheck:
test: pg_isready -U ${POSTGRES_USER:-postgres} -h 127.0.0.1
interval: 5s
pgadmin:
image: dpage/pgadmin4:latest
ports:
- "${PGADMIN_PORT:-8081}:80"
depends_on:
postgres:
condition: service_healthy
environment:
- PGADMIN_DEFAULT_EMAIL=benefits-admin@calitp.org
- PGADMIN_DEFAULT_PASSWORD=admin
- PGADMIN_CONFIG_MASTER_PASSWORD_REQUIRED=false
- PGADMIN_CONFIG_SERVER_MODE=false
- PGHOST=${POSTGRES_HOSTNAME}
- PGUSER=${POSTGRES_USER}
- PGSSLMODE=${POSTGRES_SSLMODE}
- PGPASSWORD=${POSTGRES_PASSWORD}
volumes:
- pgadmin_data:/var/lib/pgadmin
volumes:
pgdata:
driver: local
pgadmin_data:
driver: local