forked from ElisDN/rabbit-demo-spa
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
64 lines (62 loc) · 1.59 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
version: '3'
services:
frontend-nginx:
build:
context: ./frontend/docker
dockerfile: nginx.docker
volumes:
- ./frontend:/var/www/frontend
ports:
- "8080:80"
frontend-nodejs:
image: node:10.11-jessie
volumes:
- ./frontend:/var/www/frontend
working_dir: /var/www/frontend
tty: true
api-nginx:
build:
context: ./api/docker
dockerfile: nginx.docker
volumes:
- ./api:/var/www/api
ports:
- "8081:80"
api-php-fpm:
build:
context: ./api/docker
dockerfile: php-fpm.docker
volumes:
- ./api:/var/www/api
depends_on:
- api-postgres
api-php-cli:
build:
context: ./api/docker
dockerfile: php-cli.docker
volumes:
- ./api:/var/www/api
depends_on:
- api-postgres
working_dir: /var/www/api
tty: true
api-postgres:
image: postgres:9.6-alpine
volumes:
- ./api/var/docker/postgres:/var/lib/postgresql/data
environment:
- "POSTGRES_USER=api"
- "POSTGRES_PASSWORD=secret"
- "POSTGRES_DB=api"
ports:
- "54321:5432"
mailer:
image: mailhog/mailhog
restart: unless-stopped
environment:
- "POSTGRES_USER=api"
- "POSTGRES_PASSWORD=secret"
- "POSTGRES_DB=api"
ports:
- "1025:1025"
- "8082:8025"