-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
46 lines (42 loc) · 908 Bytes
/
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
version: "3.6"
services:
proxy:
image: jwilder/nginx-proxy:alpine
container_name: myspace-proxy
ports:
- 80:80
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
db:
image: postgres:alpine
container_name: myspace-db
environment:
POSTGRES_USER: myspace
POSTGRES_DB: myspace_dev
POSTGRES_PASSWORD: secret
api:
build:
context: ./
container_name: myspace-api
working_dir: /usr/src/app
expose:
- 8000
environment:
VIRTUAL_HOST: api.myspace.local,cdn.myspace.local
volumes:
- ./api:/usr/src/app
tty: true
stdin_open: true
client:
image: node:alpine
container_name: myspace-client
working_dir: /usr/src/app
user: node
expose:
- 3000
environment:
VIRTUAL_HOST: myspace.local
volumes:
- ./client:/usr/src/app
tty: true
stdin_open: true