-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
executable file
·75 lines (69 loc) · 1.52 KB
/
Copy pathdocker-compose.yml
File metadata and controls
executable file
·75 lines (69 loc) · 1.52 KB
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.8'
services:
app:
image: secultceara/api-email:latest
container_name: api-email-app
restart: unless-stopped
working_dir: /var/www
depends_on:
- redis
- db
env_file:
- .env
command: ["supervisord", "-c", "/etc/supervisord.conf"]
volumes:
- ./docker/logs/worker.log:/var/www/html/storage/logs/worker.log
networks:
- api-network
- lab
nginx:
image: nginx:alpine
container_name: api-email-nginx
restart: unless-stopped
ports:
- "${NGINX_HOST_HTTP_PORT}:80"
volumes:
- ./docker/nginx/conf.d:/etc/nginx/conf.d
depends_on:
- app
networks:
- api-network
db:
image: postgres:15
container_name: api-email-db
restart: unless-stopped
ports:
- "${DB_PORT:-5432}:5432"
env_file:
- .env
environment:
- POSTGRES_DB=${DB_DATABASE:-api_email}
- POSTGRES_USER=${DB_USERNAME:-postgres}
- POSTGRES_PASSWORD=${DB_PASSWORD:-12345678}
volumes:
- dbdata:/var/lib/postgresql/data
networks:
- api-network
mailpit:
image: 'axllent/mailpit:latest'
ports:
- '${FORWARD_MAILPIT_PORT:-1025}:1025'
- '${FORWARD_MAILPIT_DASHBOARD_PORT:-8025}:8025'
networks:
- api-network
redis:
image: redis:alpine
container_name: api-email-redis
restart: unless-stopped
env_file:
- .env
networks:
- api-network
networks:
api-network:
driver: bridge
lab:
external: true
volumes:
app_data:
dbdata: