-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose-gcp.yml
41 lines (39 loc) · 947 Bytes
/
docker-compose-gcp.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
version: '3'
services:
nginx:
image: nginx:stable-alpine
restart: always
ports:
- "80:80"
- "443:443"
volumes:
- ./etc/nginx/default.conf:/etc/nginx/conf.d/default.conf
- ./etc/certs:/etc/nginx/certs:ro
depends_on:
- node-app
node-app:
# Custom container name
# container_name: node-app
# image: node-app-image:tag
restart: always
image: gcr.io/gcp-comic-demo/comic-node-app-test
environment:
- PORT=3000
depends_on:
- mongo
- redis
# env_file:
# - ./.env
mongo:
image: mongo
# Open port for outside connection
ports:
- "27012:27017"
volumes:
- mongo-db:/data/db
redis:
image: redis
restart: always
# Named volumes
volumes:
mongo-db: