-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
66 lines (60 loc) · 1.29 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
# dev docker-compose config
version: '2'
services:
dev_server:
env_file:
- .env
environment:
- DEV_ENV=true
build:
context: ./server/
volumes:
- ./server/:/go/src/github.com/connorwalsh/new-yorken-poesry-magazine/server
- "${EXEC_MOUNT_DIR}:${EXEC_DIR}"
- /var/run/docker.sock:/var/run/docker.sock
- ./.dev-data/poets:/poets
- ./migrations:/migrations
ports:
- "${SERVER_PORT}:${SERVER_PORT}"
depends_on:
- db
- xaqt
links:
- "db:${DB_HOST}"
- "maildev:maildev"
dev_client:
env_file: .env
build:
context: ./client/
command: npm start
volumes:
- ./client/:/client/
- /client/node_modules
ports:
- "${CLIENT_PORT_DEV}:${CLIENT_PORT_DEV}"
depends_on:
- dev_server
links:
- "dev_server:${SERVER_HOST_DEV}"
xaqt:
env_file: .env
image: "${XAQT_IMAGE}"
db:
env_file: .env
build:
context: ./db/
environment:
- DEV_ENV=true
volumes:
- ./.dev-data/db:/var/lib/postgresql/data
restart: always
adminer:
image: adminer
restart: always
ports:
- 8000:8000
# dev smtp server + mail gui
maildev:
image: djfarrelly/maildev
ports:
- 1080:80 # expose mail gui at 1080