-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
55 lines (52 loc) · 1017 Bytes
/
docker-compose.yml
File metadata and controls
55 lines (52 loc) · 1017 Bytes
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
version: "3"
services:
api:
build:
context: .
dockerfile: Dockerfile.server
image: golangreact_api:dev
container_name: api
env_file: .env
volumes:
- ./server:/go/src/github.com/mamude/ginreact
ports:
- 3000:3000
networks:
- apps
client:
stdin_open: true
build:
context: .
dockerfile: Dockerfile.client
image: golangreact_client:dev
container_name: client
env_file: .env
volumes:
- ./client:/var/www/client
- /var/www/client/node_modules
ports:
- 5000:5000
links:
- api
depends_on:
- api
networks:
- apps
reverse_proxy:
image: caddy:2.1.1-alpine
container_name: reverse_proxy
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile
ports:
- 80:80
links:
- api
- client
depends_on:
- api
- client
networks:
- apps
networks:
apps:
driver: bridge