forked from gothinkster/flask-realworld-example-app
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
72 lines (67 loc) · 1.78 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
67
68
69
70
71
72
version: '3.3'
services:
backend:
image: ae86jack/flask-realworld-example-app
build:
context: .
dockerfile: Dockerfile
command: gunicorn autoapp:app -b :80 -w 2 --threads 2
depends_on:
- db
environment:
FLASK_DEBUG: 0
DATABASE_URL: postgresql://postgres:pwd@db:5432/conduit
CONDUIT_SECRET: changethis
labels:
traefik.enable: "true"
traefik.frontend.rule: PathPrefix:/api,/swagger,/swagger-ui
traefik.port: '80'
traefik.tags: conduit.com
volumes:
- ./conduit:/app/conduit:rw
networks:
default:
aliases:
- localhost
db:
environment:
PGDATA: /var/lib/postgresql/data/pgdata
POSTGRES_DB: conduit
POSTGRES_PASSWORD: pwd
POSTGRES_USER: postgres
image: postgres:11
pgadmin:
depends_on:
- db
environment:
PGADMIN_DEFAULT_EMAIL: admin
PGADMIN_DEFAULT_PASSWORD: pwd
PGADMIN_LISTEN_PORT: '5050'
image: dpage/pgadmin4
ports:
- published: 5050
target: 5050
frontend:
image: ae86jack/vue-realworld-example-app
build:
context: ../vue-realworld-example-app # Please set as the actual path of your vue project
labels:
traefik.enable: "true"
traefik.frontend.rule: PathPrefix:/
traefik.port: '80'
traefik.tags: conduit.com
proxy:
command: --docker \ --docker.watch \ --docker.exposedbydefault=false \ --constraints=tag==conduit.com
\ --logLevel=DEBUG \ --accessLog \ --web
image: traefik:v1.7
labels:
traefik.enable: "true"
traefik.frontend.rule: Host:localhost
traefik.port: '80'
ports:
- published: 80
target: 80
- published: 8090
target: 8080
volumes:
- /var/run/docker.sock:/var/run/docker.sock:rw