-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
75 lines (68 loc) · 1.65 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
version: '3.5'
services:
spa:
build:
context: "./env/dev/spa"
ports:
- "${VUE_UI_PORT:-8090}:8000"
- "${SPA_APP_PORT:-8091}:8080"
- '3000:3000'
volumes:
- ./spa:/var/spa:${CACHING_OPTION:-cached}
- ./env/prod/spa/dist:/var/spa/dist
stdin_open: true
tty: true
environment:
- CHOKIDAR_USEPOLLING=true
working_dir: /var/spa
command: "vue ui -H 0.0.0.0 -p 8000"
web:
build:
context: "./env/dev/web"
ports:
- "${API_PORT:-8092}:80"
volumes:
- ./api:/var/www
working_dir: /var/www
api:
build:
context: "./env/dev/api"
environment:
XDEBUG_PORT: ${XDEBUG_PORT:-9000}
volumes:
- ./api:/var/www
- ./env/prod/api/dist:/var/dist
- ./env/dev/api/conf/docker-php-ext-xdebug.ini:/usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
- composer-volume:/root/.composer
working_dir: /var/www
db:
image: mdillon/postgis:11
environment:
POSTGRES_PASSWORD: postgres
volumes:
- database-volume:/var/lib/postgresql/data
ports:
- 5432:5432
redis:
image: redis:5
ports:
- '${REDIS_PORT:-6379}:6379'
swagger:
image: swaggerapi/swagger-ui
ports:
- "${SWAGGER_PORT:-8093}:8080"
environment:
URL: openapi.yaml
volumes:
- ./api/openapi.yml:/usr/share/nginx/html/openapi.yaml:${CACHING_OPTION:-cached}
pgadmin:
build:
context: "./env/dev/pgadmin"
environment:
PGADMIN_DEFAULT_EMAIL: [email protected]
PGADMIN_DEFAULT_PASSWORD: password
ports:
- '${PGADMIN_PORT:-8094}:80'
volumes:
database-volume:
composer-volume: