-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
140 lines (132 loc) · 3.3 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
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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
version: "3.3"
services:
traefik:
image: "traefik:v2.4"
container_name: "traefik"
command:
#- "--log.level=DEBUG"
- "--api.insecure=true"
- "--providers.docker=true"
- "--providers.docker.exposedbydefault=false"
- "--entrypoints.web.address=:5080"
ports:
- "5080:5080"
- "8081:8080"
networks:
- public
volumes:
- "/var/run/docker.sock:/var/run/docker.sock:ro"
svelte:
container_name: svelte
build:
context: ./svelte
ports:
- 5000:5000
- 9229:9229
volumes:
- ./svelte:/svelte
environment:
- HOST=0.0.0.0
depends_on:
- graphile
command: npm run dev
working_dir: /svelte
networks:
- public
labels:
- traefik.enable=true
- traefik.http.routers.svelte.rule=Host(`localhost`)
- traefik.http.routers.svelte.entrypoints=web
postgres:
container_name: postgres
restart: always
image: postgres
build:
context: ./postgres
volumes:
- postgres:/var/lib/postgresql/data
env_file:
- .env
networks:
- public
ports:
- 5432:5432
graphile:
container_name: graphile
restart: always
image: graphile
build:
context: ./graphile
env_file:
- .env
environment:
# - DEBUG=postgraphile:postgres,postgraphile:postgres:error,postgraphile:graphql
- DEBUG=graphile-build:warn
depends_on:
- postgres
networks:
- public
ports:
- 5433:5433
labels:
- traefik.enable=true
- traefik.http.routers.graphile.rule=PathPrefix(`/graphql`) || PathPrefix(`/graphiql`)
- traefik.http.routers.graphile.entrypoints=web
migrate:
container_name: migrate
build:
context: ./db-migrations
volumes:
- ./db-migrations:/db-migrations
env_file:
- .env
depends_on:
- postgres
command: graphile-migrate watch
working_dir: /db-migrations
networks:
- public
# keycloak:
# image: quay.io/keycloak/keycloak:latest
# environment:
# DB_VENDOR: POSTGRES
# DB_ADDR: postgres
# DB_DATABASE: keycloak
# DB_USER: postgres
# DB_SCHEMA: public
# DB_PASSWORD: blip24
# KEYCLOAK_USER: admin
# KEYCLOAK_PASSWORD: Pa55w0rd
# # Uncomment the line below if you want to specify JDBC parameters. The parameter below is just an example, and it shouldn't be used in production without knowledge. It is highly recommended that you read the PostgreSQL JDBC driver documentation in order to use it.
# #JDBC_PARAMS: "ssl=true"
# ports:
# - 8082:8080
# depends_on:
# - postgres
# networks:
# - public
pgadmin:
container_name: pgadmin
image: dpage/pgadmin4
env_file:
- .env
depends_on:
- postgres
volumes:
- pgadmin:/root/.pgadmin
ports:
- 5050:80
networks:
- public
restart: unless-stopped
labels:
- traefik.enable=true
- traefik.http.routers.pgadmin.rule=PathPrefix(`/pgadmin`)
- traefik.http.middlewares.pgadmin.stripprefix.prefixes=/pgadmin
- traefik.http.middlewares.pgadmin.stripprefix.forceSlash=false
- traefik.http.routers.pgadmin.entrypoints=web
networks:
public:
volumes:
postgres:
pgadmin: