-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
executable file
·61 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
version: '3.7'
services:
php:
build:
dockerfile: docker/dev/php/Dockerfile
context: .
platform: linux/x86_64
container_name: deck-php
expose:
- 80
ports:
- "8888:80"
volumes:
- .:/var/www/deck
working_dir: /var/www/deck
links:
- postgresql
environment:
AMQP_URL: 'amqp://rabbitmq?connection_attempts=5&retry_delay=5'
PHP_IDE_CONFIG: 'serverName=Dev'
XDEBUG_REMOTE_HOST: 'docker.for.mac.host.internal'
postgresql:
image: postgres:9.6.6
container_name: deck-database
expose:
- 5433
ports:
- "5433:5432"
environment:
- POSTGRES_USER=admin
- POSTGRES_PASSWORD=pass
- POSTGRES_DB=deck
volumes:
- database:/var/lib/postgresql/data
# rabbitmq:
# image: 'rabbitmq:3.6-management-alpine'
# container_name: deck-rabbitmq
# ports:
# # The standard AMQP protocol port
# - '5672:5672'
# # HTTP management UI
# - '15672:15672'
api-doc:
image: swaggerapi/swagger-ui:v3.52.3
container_name: deck-api-doc
restart: unless-stopped
expose:
- 8080
ports:
- "8889:8080"
environment: [ "SWAGGER_JSON=/var/www/deck-api-doc/openapi.yaml","VALIDATOR_URL=" ]
volumes:
- ./spec:/var/www/deck-api-doc:ro
volumes:
database:
driver: local