-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
69 lines (62 loc) · 1.27 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
version: "3.7"
services:
deophp:
build:
context: .
dockerfile: php.Dockerfile
container_name: php
volumes:
- .:/var/www
env_file:
- .docker.env
database:
env_file:
- .docker.env
container_name: database
image: postgres
ports:
- 5432:5432
volumes:
- dbdata:/var/lib/postgresql/data
- ./init.sql:/docker-entrypoint-initdb.d/init.sql
api:
image: nginx:stable-alpine
container_name: api
ports:
- "8080:80"
volumes:
- .:/var/www
- ./nginx.conf:/etc/nginx/conf.d/default.conf
depends_on:
- deophp
- database
rabbit:
image: "rabbitmq:3-management"
env_file:
- .docker.env
ports:
- "5672:5672"
worker:
build:
context: .
dockerfile: worker.Dockerfile
container_name: worker
volumes:
- .:/var/www
- ./supervisord.conf:/etc/supervisord.conf
env_file:
- .docker.env
depends_on:
- deophp
command: ["supervisord", "-c", "/etc/supervisord.conf"]
swagger-ui:
image: swaggerapi/swagger-ui
container_name: swagger-ui
ports:
- 8003:8080
volumes:
- ./openapi.json:/openapi.json
environment:
SWAGGER_JSON: /openapi.json
volumes:
dbdata: