-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
67 lines (62 loc) · 1.81 KB
/
docker-compose.yml
File metadata and controls
67 lines (62 loc) · 1.81 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
# version: '3.8'
services:
nextjs:
build: ./next-app
container_name: nextjs
restart: always
depends_on:
- postgres
command:
sh -c "npx prisma migrate deploy && npm run seed && npm run build && npm run start"
# We'll need to make some changes here before final deployment:
# Migrationos should be correct, which means we should prisma migrate deploy instead of the other prisma commands
# I'm not sure about npm run seed, but it's in for now I've had to take it out of package.json so it doesn't run automatically.
environment:
- DATABASE_URL
- AUTH_TRUST_HOST
- GITHUB_CLIENT_ID
- GITHUB_CLIENT_SECRET
- AUTH_SECRET
- EMAIL_SERVER
- EMAIL_FROM
- GOOGLE_CLIENT_ID
- GOOGLE_CLIENT_SECRET
- AZURE_STORAGE_CONNECTION_STRING
- AZURE_STORAGE_CONTAINER_NAME
ports:
- "3000:3000"
postgres:
image: postgres:16-alpine
container_name: postgres
restart: always
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: Agincourt1096
POSTGRES_DB: medefineDb
volumes:
- postgres-data:/var/lib/postgresql/data
nginx:
build: ./nginx
container_name: nginx
restart: always
ports:
- "80:80"
- "443:443"
volumes:
- certbot-etc:/etc/letsencrypt
- certbot-www:/var/www/certbot
environment:
DOMAIN_NAME: team1docker.uksouth.cloudapp.azure.com
depends_on:
- nextjs
certbot:
image: certbot/certbot
container_name: certbot
volumes:
- certbot-etc:/etc/letsencrypt
- certbot-www:/var/www/certbot
command: certonly --webroot -w /var/www/certbot --email yun.fu@ucl.ac.uk --agree-tos --no-eff-email -d team1docker.uksouth.cloudapp.azure.com
volumes:
postgres-data:
certbot-etc:
certbot-www: