-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
60 lines (56 loc) · 1.26 KB
/
docker-compose.yml
File metadata and controls
60 lines (56 loc) · 1.26 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
services:
nextapp:
build:
context: .
dockerfile: Dockerfile
ports:
- '3000:3000'
container_name: nextapp
restart: always
env_file:
- .env.production
environment:
- NODE_ENV=production
depends_on:
- postgres
command: sh -c "cd src && npx prisma migrate deploy && mkdir -p /app/data && [ -f /app/data/.seeded ] || (npx prisma db seed && touch /app/data/.seeded) && cd .. && npm start"
networks:
- app-network
volumes:
- ./src:/app/src
- ./app-data:/app/data
postgres:
image: postgres:15
container_name: postgres
restart: always
ports:
- '5432:5432'
env_file:
- .env.production
volumes:
- pgdata:/var/lib/postgresql/data
networks:
- app-network
nginx:
build: ./nginx
container_name: nginx-main
ports:
- '80:80'
- '443:443'
volumes:
- certbot-etc:/etc/letsencrypt
- certbot-www:/var/www/certbot
environment:
DOMAIN_NAME: team3docker.uksouth.cloudapp.azure.com
depends_on:
- nextapp
networks:
- app-network
networks:
app-network:
volumes:
pgdata:
certbot-etc:
name: comp0067_2025_team3_certbot-etc
certbot-www:
name: comp0067_2025_team3_certbot-www