-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
45 lines (45 loc) · 1.05 KB
/
docker-compose.yml
File metadata and controls
45 lines (45 loc) · 1.05 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
version: '3'
services:
web:
image: nginx:alpine
volumes:
- ./:/var/www/html:delegated
- ./.docker/default.conf:/etc/nginx/conf.d/default.conf:delegated
working_dir: /var/www/html
environment:
- VIRTUAL_HOST=${VIRTUAL_HOST}
- VIRTUAL_PORT=3000
- LETSENCRYPT_HOST=${VIRTUAL_HOST}
- LETSENCRYPT_EMAIL=certs@ethercreative.co.uk
links:
- node
- postgres
depends_on:
- node
- postgres
restart: unless-stopped
node:
image: node:alpine
command: >
sh -c "${START_CMD}"
volumes:
- ./:/usr/src/app:delegated
working_dir: /usr/src/app
environment:
- VIRTUAL_HOST=${VIRTUAL_HOST}
ports:
- 3000:3000
restart: unless-stopped
postgres:
image: postgres:11-alpine
environment:
- POSTGRES_DB=${DB_DATABASE}
- POSTGRES_USER=${DB_USER}
- POSTGRES_PASSWORD=${DB_PASSWORD}
volumes:
- ./.data/postgres:/var/lib/postgresql/data:delegated
restart: unless-stopped
networks:
default:
external:
name: proxy