-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
76 lines (72 loc) · 1.76 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
68
69
70
71
72
73
74
75
76
services:
nginx:
image: nginx:latest
container_name: nginx
depends_on:
- web
- admin
restart: always
ports:
- "80:80"
- "443:443"
volumes:
- /etc/nginx/sites-available/web:/etc/nginx/sites-enabled/web
- /etc/nginx/nginx.conf:/etc/nginx/nginx.conf
- /var/www/images:/var/www/images
- /var/www/videos:/var/www/videos
- /etc/letsencrypt:/etc/letsencrypt:ro
networks:
- gYachts
web:
image: ghcr.io/g-yachts/g-yachts-web:${GITHUB_SHA}
restart: unless-stopped
container_name: web
environment:
- MAILCHIMP_API_KEY=${MAILCHIMP_API_KEY}
- MAILCHIMP_LIST_ID=${MAILCHIMP_LIST_ID}
- MAILCHIMP_SERVER=${MAILCHIMP_SERVER}
- GOOGLE_ANALYTICS_ID=${GOOGLE_ANALYTICS_ID}
- RESEND_API_KEY=${RESEND_API_KEY}
- PAYLOAD_API_KEY=${PAYLOAD_API_KEY}
ports:
- "3000:3000"
depends_on:
- admin
networks:
- gYachts
env_file:
- .env
admin:
image: ghcr.io/g-yachts/g-yachts-admin:${GITHUB_SHA}
restart: unless-stopped
extra_hosts:
- "host.docker.internal:host-gateway"
container_name: admin
depends_on:
- mongo
env_file:
- .env
networks:
- gYachts
volumes:
- /var/www/media:/home/node/app/media
mongo:
image: mongo:latest
container_name: mongo
environment:
- MONGO_INITDB_ROOT_USERNAME=${MONGO_USER}
- MONGO_INITDB_ROOT_PASSWORD=${MONGO_PASS}
networks:
- gYachts
volumes:
- /var/www/mongo:/data/db
command: mongod --auth --wiredTigerCacheSizeGB 1
networks:
gYachts:
driver: bridge
ipam:
driver: default
config:
- subnet: 172.28.0.0/16
ip_range: 172.28.5.0/24
gateway: 172.28.5.254