This repository was archived by the owner on Mar 13, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
60 lines (56 loc) · 1.66 KB
/
docker-compose.yml
File metadata and controls
60 lines (56 loc) · 1.66 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
version: '2.4'
services:
flexible-graphql-bundle: # symfony integration
build:
context: .
image: flexible-graphql-bundle
working_dir: /app
command: sh -c 'composer install --no-interaction && php -S 0.0.0.0:8081 public/index.php'
volumes:
- ./FlexibleGraphqlBundle:/app
ports:
- 8081:8081
depends_on:
- postgresql
no-framework: # integration to self written framework or not supported framework
build:
context: .
image: no-framework
working_dir: /app
command: sh -c 'composer install --no-interaction && php -S 0.0.0.0:8082 index.php'
volumes:
- ./NoFramework:/app
ports:
- 8082:8082
depends_on:
- postgresql
apollo-federation: # demo for apollo federation integration
image: apollo-federation
build:
context: ApolloFederation
environment:
NODE_PATH: /app/node_modules
working_dir: /app
command: sh -c 'npm install && rover supergraph compose --config /app/supergraph.yaml > /app/supergraph.graphql && node index'
volumes:
- ./ApolloFederation:/app
- ./NoFramework/schema.graphql:/app/no_framework.graphql
- ./FlexibleGraphqlBundle/config/graphql/schema.graphql:/app/symfony.graphql
ports:
- 8888:8888
depends_on:
- flexible-graphql-bundle
- no-framework
postgresql:
image: postgres:13.3-alpine3.14
environment:
POSTGRES_USER: root
POSTGRES_PASSWORD: root
POSTGRES_DB: demo
ports:
- 5432:5432
volumes:
- postgresql:/var/lib/postgresql/data
- ./Postgresql/001-create-database.sql:/docker-entrypoint-initdb.d/001-create-database.sql
volumes:
postgresql: