-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathcompose.yaml
More file actions
72 lines (64 loc) · 2.25 KB
/
Copy pathcompose.yaml
File metadata and controls
72 lines (64 loc) · 2.25 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
name: weconnect-server
services:
weconnect-db:
environment:
- POSTGRES_USER=${DATABASE_USER}
- POSTGRES_PASSWORD=${DATABASE_PASSWORD}
- POSTGRES_DB=${DATABASE_NAME}
healthcheck:
test: ["CMD-SHELL", "pg_isready"]
interval: 10s
timeout: 5s
retries: 5
image: postgres:16-alpine
networks:
- wevote
user: postgres
volumes:
- postgres_data:/var/lib/postgresql/data
- /tmp/docker:/tmp # Needed to get backup files into psql to test fastback
weconnect-api:
build:
dockerfile: docker/Dockerfile.dev
args:
- HTTPS_SSL_HOST=${HOST}
depends_on:
weconnect-db:
condition: service_healthy
environment:
- DATABASE_HOST=weconnect-db # use db host/port for weconnect-db service (defined above)
- DATABASE_PORT=5432
- HTTPS_SSL_CERT=${HTTPS_SSL_CERT:-/etc/ssl/certs/cert.pem} # use automatically created cert as a fallback
- HTTPS_SSL_KEY=${HTTPS_SSL_KEY:-/etc/ssl/private/key.pem} # use automatically created key as a fallback
volumes:
- .:/app
# Prevent host node_modules from shadowing the container's installed node_modules
- /app/node_modules
- /tmp/docker:/tmp # Needed to get backfiles into psql to test fastback
networks:
- wevote
ports:
- "0.0.0.0:4500:4500" # access the WeConnect API at https://wevotedeveloper.com:4500
- "127.0.0.1:5555:5555" # expose prisma studio running inside container
# 8/26/26: This MUST BE "0.0.0.0:9229:9229" -- Don't change it unless you have confirmed your change using WebStorm
- "0.0.0.0:9229:9229" # The WebStorm Node debugger port
pgadmin:
image: dpage/pgadmin4:8.4
environment:
PGADMIN_DEFAULT_EMAIL: ${PG_ADMIN_EMAIL:-fake_email@wevoteeducation.org}
PGADMIN_DEFAULT_PASSWORD: ${PG_ADMIN_PASSWORD:-admin}
DATABASE_USER: ${DATABASE_USER:-postgres}
DATABASE_PASSWORD: ${DATABASE_PASSWORD:-admin}
volumes:
- pgadmin_data:/var/lib/pgadmin
ports:
- "127.0.0.1:7000:80" # expose pgadmin at http://localhost:7000/
networks:
- wevote
networks:
wevote:
name: wevote
external: true
volumes:
postgres_data:
pgadmin_data: