-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
executable file
·67 lines (60 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
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"]
networks:
- api-network
- mapaservices
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
redis:
image: redis:alpine
container_name: api-email-redis
restart: unless-stopped
env_file:
- .env
networks:
- api-network
networks:
api-network:
driver: bridge
mapaservices:
external: true
volumes:
app_data:
dbdata: