-
Notifications
You must be signed in to change notification settings - Fork 0
/
dc-dev.yaml
64 lines (59 loc) · 1.67 KB
/
dc-dev.yaml
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
version: '3.7'
services:
caddy:
image: psucoder/caddy:no-stats
restart: on-failure
environment:
ACME_AGREE: "true"
volumes:
- ./caddy/Caddyfile:/etc/Caddyfile
- ./certs:/etc/certs
ports:
- 80:80
- 443:443
# web:
# build:
# context: ./web
# target: develop-stage
# command: /bin/sh -c 'yarn && yarn serve'
# environment:
# PORT: 80
# volumes:
# # - ./web/.eslintrc.js:/app/.eslintrc.js:delegated
# - ./web/babel.config.js:/app/babel.config.js:delegated
# - ./web/package.json:/app/package.json:delegated
# - ./web/public:/app/public:delegated
# - ./web/src:/app/src:delegated
# - ./web/tsconfig.json:/app/tsconfig.json:delegated
# - ./web/vue.config.js:/app/vue.config.js:delegated
# api:
# image: golang:1.14-alpine
# command: ["go", "run", "/app/main.go"]
# working_dir: /app
# env_file: .env
# restart: on-failure
# volumes:
# - ./api:/app:delegated
# - ./api/conf/credentials.json:/conf/credentials.json
# - $GOPATH/pkg/mod/cache:/go/pkg/mod/cache:delegated
# bot:
# image: golang:1.14-alpine
# command: ["go", "run", "/app/cmd/bot/main.go", "/app/cmd/bot/server.go"]
# working_dir: /app
# env_file: .env
# restart: on-failure
# volumes:
# - ./api:/app:delegated
# - $GOPATH/pkg/mod/cache:/go/pkg/mod/cache:delegated
postgres:
image: postgres
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB}
volumes:
- pgdata:/var/lib/postgresql/data
ports:
- 7202:5432
volumes:
pgdata: