-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
62 lines (56 loc) · 1.38 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
version: '3.7'
services:
pgadmin:
image: zen/pgadmin4:latest
hostname: pgadmin
container_name: pgadmin
build:
context: ./
dockerfile: ./deploy/postgres/Dockerfile
args:
PGADMIN_EMAIL: ${PGADMIN_EMAIL}
environment:
PGADMIN_EMAIL: ${PGADMIN_EMAIL}
PGADMIN_DEFAULT_EMAIL: ${PGADMIN_EMAIL}
PGADMIN_DEFAULT_PASSWORD: ${PGADMIN_PASSWORD}
volumes:
- pgadmin:/var/lib/pgadmin
ports:
- '${PGADMIN_PORT:-5050}:80'
networks:
- postgres-network
restart: always
apollo-router:
image: ghcr.io/apollographql/router:v1.4.0
container_name: apollo-router
environment:
APOLLO_GRAPH_REF: ${APOLLO_GRAPH_REF}
APOLLO_KEY: ${APOLLO_KEY}
network_mode: bridge
extra_hosts:
- host.docker.internal:host-gateway
ports:
- 4000:4000
volumes:
- ./router-dev.yaml:/dist/config/router.yaml
postgres-auth-api:
image: postgres:14
container_name: postgres-auth-api
restart: always
environment:
POSTGRES_PASSWORD: ${PGPASSWORD}
POSTGRES_USER: ${PGUSER}
POSTGRES_DB: ${AUTH_PGDATABASE}
volumes:
- postgres-auth-api:/var/lib/postgresql/data
ports:
- ${AUTH_PGDATABASE_PORT}:5432
networks:
- postgres-network
volumes:
postgres-auth-api:
pgadmin:
networks:
postgres-network:
driver: bridge
name: postgres-network