-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
52 lines (49 loc) · 1.1 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
version: '3.9'
# Network
networks:
server_network:
name: server_network
driver: bridge
# Services
services:
ai_cu:
container_name: ai_cu_sever
build: ./
image: ai_cu_server
restart: unless-stopped
env_file: .env
ports:
- 8080:8080
environment:
PORT: ${PORT}
DATABASE_URL: ${DATABASE_URL}
NODE_ENV: ${NODE_ENV}
volumes:
- ./:/usr/src/app
- /usr/src/app/node_modules
networks:
- server_network
nginx:
image: nginx:latest
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf
- ./certbot/conf:/etc/letsencrypt
- ./certbot/www:/var/www/certbot
ports:
- 80:80
- 443:443
networks:
- server_network
depends_on:
- ai_cu
certbot:
image: certbot/certbot
container_name: certbot
volumes:
- ./certbot/conf:/etc/letsencrypt
- ./certbot/www:/var/www/certbot
command: certonly --webroot -w /var/www/certbot --force-renewal --email [email protected] -d api.paxrelpax.com --agree-tos
networks:
- server_network
# depends_on:
# - ai_cu