-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yaml
74 lines (68 loc) · 2.4 KB
/
docker-compose.yaml
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
version: '3'
services:
rabbitmq:
image: lucianojr/order-service-rabbitmq
build:
context: .
dockerfile: docker/rabbitmq/Dockerfile
environment:
RABBITMQ_DEFAULT_USER: ${RABBITMQ_MANAGEMENT_USER}
RABBITMQ_DEFAULT_PASS: ${RABBITMQ_MANAGEMENT_PASS}
RABBITMQ_DEFAULT_VHOST: ${RABBITMQ_MANAGEMENT_VHOST}
ports:
- ${RABBITMQ_MANAGEMENT_HOST_PORT}:${RABBITMQ_MANAGEMENT_REMOTE_PORT}
- ${RABBITMQ_HOST_PORT}:${RABBITMQ_MANAGEMENT_REMOTE_PORT}
volumes:
- ./var/data/rabbitmq:/var/lib/rabbitmq
nginx:
image: lucianojr/order-service-nginx
build:
context: .
dockerfile: docker/nginx/Dockerfile
depends_on:
- php
volumes:
- ${APP_CODE_PATH_HOST}/public:${APP_CODE_PATH_CONTAINER}/public
ports:
- ${NGINX_HOST_PORT}:${NGINX_REMOTE_PORT}
php:
image: lucianojr/order-service-php
build:
context: .
dockerfile: docker/php/Dockerfile.dev
ports:
- ${PHP_FPM_HOST_PORT}:${PHP_FPM_REMOTE_PORT}
volumes:
- ${APP_CODE_PATH_HOST}:${APP_CODE_PATH_CONTAINER}${APP_CODE_PATH_CONTAINER_SUFFIX}
postgres:
image: lucianojr/order-service-postgres
build:
context: .
dockerfile: docker/postgres/Dockerfile
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASS}
POSTGRES_DB: ${POSTGRES_DB}
ports:
- ${POSTGRES_PORT}:5432
volumes:
- ./var/data/postgres:/var/lib/postgresql/data
graphql:
restart: always
image: lucianojr/order-service-graphql
build:
context: .
dockerfile: docker/graphql/Dockerfile
depends_on:
- postgres
ports:
- ${GRAPHQL_PORT}:5433
command: ["--connection", "postgres://${POSTGRES_PASS}:${POSTGRES_USER}@postgres/${POSTGRES_DB}", "--port", "5433", "--schema", "public", "--append-plugins", "postgraphile-plugin-connection-filter", "--enhance-graphiql", "-o", "--allow-explain"]
metabase:
image: metabase/metabase
depends_on:
- postgres
ports:
- ${METABASE_PORT}:3000
volumes:
- ./var/data/metabase:/var/lib/metabase