-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
60 lines (59 loc) · 1.23 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
version: '3.8'
services:
nginx:
build:
context: ./docker/development/nginx
dockerfile: Dockerfile
volumes:
- ./:/app
depends_on:
- php-fpm
ports:
- "8080:80"
php-fpm:
build:
context: ./docker/development/php-fpm
dockerfile: Dockerfile
volumes:
- ./:/app
php-cli:
build:
context: ./docker/development/php-cli
dockerfile: Dockerfile
volumes:
- ./:/app
- manager-composer:/root/.composer/cache
postgres:
image: postgres:14.2-alpine
volumes:
- manager-postgres:/var/lib/postgresql/data
environment:
POSTGRES_USER: app
POSTGRES_PASSWORD: secret
POSTGRES_DB: app
ports:
- "54321:5432"
mailer:
image: mailhog/mailhog
ports:
- '8081:8025'
node:
image: node:16.14-alpine
volumes:
- ./:/app
working_dir: /app
node-watch:
image: node:16.14-alpine
volumes:
- ./:/app
working_dir: /app
command: sh -c "until [ -f .ready ] ; do sleep 1 ; done && npm run watch"
redis:
image: redis:3.0-alpine
volumes:
- manager-redis:/data
command: redis-server --requirepass secret
volumes:
manager-postgres:
manager-redis:
manager-composer: