-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
57 lines (52 loc) · 1.08 KB
/
docker-compose.yaml
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
services:
app:
build:
context: .
dockerfile: Dockerfile
container_name: skeleton-api
restart: unless-stopped
working_dir: /var/www/html
volumes:
- .:/var/www/html
- ./docker/nginx/nginx.conf:/etc/nginx/conf.d/default.conf
- ./docker/supervisord/supervisord.conf:/etc/supervisor/conf.d/supervisord.conf
ports:
- "8001:80"
depends_on:
- pgsql
networks:
- laravel
pgsql:
image: postgres:latest
container_name: pgsql
restart: unless-stopped
environment:
POSTGRES_DB: laravel
POSTGRES_USER: laravel
POSTGRES_PASSWORD: secret
volumes:
- pgdata:/var/lib/postgresql/data
ports:
- "5432:5432"
networks:
- laravel
mailpit:
image: axllent/mailpit:latest
container_name: mailpit
ports:
- "8025:8025"
networks:
- laravel
mailhog:
image: mailhog/mailhog:latest
container_name: mailhog
ports:
- "1025:1025"
- "8026:8025"
networks:
- laravel
networks:
laravel:
driver: bridge
volumes:
pgdata: