~jiyu/Jiyu-Web

Jiyu-Web/docker-compose.yml.example -rw-r--r-- 963 bytes
2cdab4fajiyu You can now click on an element to edit it instead of having to close your previous edit. 8 months ago
                                                                                
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
# vim: ai:ts=2:sw=2:et
version: '3.7'

volumes:
  db-data:
  db-logs:

services:
  console:
    build:
      context: .
      dockerfile: Dockerfile
    image: jiyu-web
    ports:
      - "3000:3000"
    environment:
      SERVICE_NAME: app
      SERVICE_TAGS: dev
    working_dir: /var/www
    networks:
      - app-network
    volumes:
      - ./:/var/www:rw

  webserver:
    image: nginx:1.17
    ports:
      - "80:80"
    networks:
      - app-network
    volumes:
      - ./:/var/www:rw
      - ./nginx/conf.d/:/etc/nginx/conf.d/:rw

  db:
    image: percona:5.7
    ports:
      - "3306:3306"
    environment:
      MYSQL_RANDOM_ROOT_PASSWORD: "yes"
      MYSQL_DATABASE: "jiyu-web"
      MYSQL_USER: "homestead"
      MYSQL_PASSWORD: "secret"
      SERVICE_TAGS: dev
      SERVICE_NAME: mysql
    networks:
      - app-network
    volumes:
      - db-data:/var/lib/mysql:rw
      - db-logs:/var/logs/mysql:rw

networks:
  app-network:
    driver: bridge